DataReader.GetItemMaxLength Method (Int32)


Retrieves the maximum length, in characters, of data items at the specified index.

Namespace:   Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

public abstract int GetItemMaxLength(
	int index


Type: System.Int32

The index of the data item being examined for length.

Return Value

Type: System.Int32

Returns the maximum length, in number of characters, of the data item at the specified index; or, returns -1 if the maximum length is unavailable or is not sensible.

Exception Condition

The index parameter is invalid.

Return to top