SqlBytes.Length 属性

定义

获取实例中包含的 SqlBytes 值的长度。

public:
 property long Length { long get(); };
public long Length { get; }
member this.Length : int64
Public ReadOnly Property Length As Long

属性值

一个 Int64 值,表示实例中包含的 SqlBytes 值的长度。

如果实例没有可用的缓冲区或值为 null,则返回 -1。

返回流包装实例的一个 Length

注解

默认值为 0。

适用于

另请参阅