IDataRecord.GetName(Int32) 方法

定义

获取要查找的字段的名称。Gets the name for the field to find.

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

参数

i
Int32

要查找的字段的索引。The index of the field to find.

返回

字段的名称,如果没有要返回的值,则为空字符串 ("")。The name of the field or the empty string (""), if there is no value to return.

异常

传递的索引位于 0 至 FieldCount 的范围之外。The index passed was outside the range of 0 through FieldCount.

适用于