IDataReader.GetName(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |