AdoDotNetDataReader.GetItemName Method

Retrieves the name assigned to the data item at the specified index, if any.

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

Syntax

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

returnValue = instance.GetItemName(index)
public override string GetItemName(
    int index
)
public:
virtual String^ GetItemName(
    int index
) override
public override function GetItemName(
    index : int
) : String

Parameters

  • index
    Type: System.Int32

    The index of the data item for which to retrieve the name.

Return Value

Type: System.String

Returns the name assigned to the data item at the index specified by the index parameter, or a null reference (Nothing in Visual Basic) if no name exists.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The index parameter is invalid.

Permissions

See Also

Reference

AdoDotNetDataReader Class

AdoDotNetDataReader Members

Microsoft.VisualStudio.Data.AdoDotNet Namespace