SqlChars.MaxLength Property

Definition

Gets the maximum length in two-byte characters of the value the internal buffer can hold.

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

Property Value

An Int64 value representing the maximum length in two-byte characters of the value of the internal buffer.

Returns -1 for a stream-wrapped SqlChars.

Remarks

The default value is 0.

Applies to

See also