SqlChars.Length Property

 

Gets the length of the value that is contained in the SqlChars instance.

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

public long Length { get; }

Property Value

Type: System.Int64

A Int64 value that indicates the length in characters of the value that is contained in the SqlChars instance.

Returns -1 if no buffer is available to the instance, or if the value is null.

Returns a Length for a stream-wrapped instance.

The default value is 0.

.NET Framework
Available since 2.0
Return to top
Show: