语言

IDataReader.GetName(Int32) 方法

定义

要找到要找的字段名称。

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

参数

fieldIndex
Int32

要查找的字段的索引。

返回

字段名称,或如果没有返回值则使用空字符串(“”)。

注解

异常

例外类型 条件
Index超出范围异常 传递的索引超出了 0 到 FieldCount0 的范围。

适用于