IDataReader.GetName(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
要找到要找的字段名称。
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 的范围。 |