SqlChars.Length SqlChars.Length SqlChars.Length SqlChars.Length Property

定义

获取 SqlChars 实例中包含的值的长度。Gets the length of the value that is contained in the SqlChars instance.

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

属性值

一个 Int64 值,指示 SqlChars 实例中包含的值的长度(以字符为单位)。A Int64 value that indicates the length in characters of the value that is contained in the SqlChars instance.

如果没有可由该实例使用的缓冲区,或者该值为 null,则返回 -1。Returns -1 if no buffer is available to the instance, or if the value is null.

返回流包装实例的 LengthReturns a Length for a stream-wrapped instance.

注解

默认值为 0。The default value is 0.

适用于

另请参阅