共用方式為


IDataReader.GetName(Int32) Method

Definition

Gets the name of the field to find.

public:
 System::String ^ GetName(int fieldIndex);
public string GetName (int fieldIndex);
abstract member GetName : int -> string
Public Function GetName (fieldIndex As Integer) As String

Parameters

fieldIndex
Int32

The index of the field to find.

Returns

The name of the field, or the empty string ("") if there is no value to return.

Remarks

Exceptions

Exception type Condition
IndexOutOfRangeException The index passed was outside the range of 0 through FieldCount.

Applies to