AdoDotNetDataReader.GetItemMaxLength Method

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

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

Syntax

'宣言
Public Overrides Function GetItemMaxLength ( _
    index As Integer _
) As Integer
'使用
Dim instance As AdoDotNetDataReader
Dim index As Integer
Dim returnValue As Integer

returnValue = instance.GetItemMaxLength(index)
public override int GetItemMaxLength(
    int index
)
public:
virtual int GetItemMaxLength(
    int index
) override
public override function GetItemMaxLength(
    index : int
) : int

Parameters

  • 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.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The index parameter is invalid.

Permissions

See Also

Reference

AdoDotNetDataReader Class

AdoDotNetDataReader Members

Microsoft.VisualStudio.Data.AdoDotNet Namespace