Freigeben über


AdoDotNetDataReader.GetItemName(Int32) Method

Definition

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

public:
 override System::String ^ GetItemName(int index);
public override string GetItemName (int index);
override this.GetItemName : int -> string
Public Overrides Function GetItemName (index As Integer) As String

Parameters

index
Int32

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

Returns

Returns the name assigned to the data item at the index specified by the index parameter, or null if no name exists.

Exceptions

The index parameter is invalid.

Applies to