OleDbDataReader.Item[] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取其本机格式的列的值。
重载
| 名称 | 说明 |
|---|---|
| Item[Int32] |
获取给定列序号的指定列的本机格式的值。 |
| Item[String] |
获取给定列名称的本机格式指定列的值。 |
Item[Int32]
- Source:
- OleDbDataReader.cs
- Source:
- OleDbDataReader.cs
- Source:
- OleDbDataReader.cs
- Source:
- OleDbDataReader.cs
获取给定列序号的指定列的本机格式的值。
public:
virtual property System::Object ^ default[int] { System::Object ^ get(int index); };
public:
property System::Object ^ default[int] { System::Object ^ get(int index); };
public override object this[int index] { get; }
public object this[int index] { get; }
member this.Item(int) : obj
Default Public Overrides ReadOnly Property Item(index As Integer) As Object
Default Public ReadOnly Property Item(index As Integer) As Object
参数
- index
- Int32
列序号。
属性值
指定列的本机格式的值。
实现
例外
传递的索引超出了 0 到 FieldCount0 的范围。
另请参阅
适用于
Item[String]
- Source:
- OleDbDataReader.cs
- Source:
- OleDbDataReader.cs
- Source:
- OleDbDataReader.cs
- Source:
- OleDbDataReader.cs
获取给定列名称的本机格式指定列的值。
public:
virtual property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ name); };
public:
property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ name); };
public override object this[string name] { get; }
public object this[string name] { get; }
member this.Item(string) : obj
Default Public Overrides ReadOnly Property Item(name As String) As Object
Default Public ReadOnly Property Item(name As String) As Object
参数
- name
- String
列名。
属性值
指定列的本机格式的值。
实现
例外
找不到具有指定名称的列。
注解
首先执行区分大小写的查找。 如果失败,则会进行第二次不区分大小写的搜索。
此方法不区分假名宽度。