OracleDataReader.Item[] 属性

定义

获取其本机格式的列的值。

重载

名称 说明
Item[Int32]

获取给定列序号的指定列的本机格式的值。

Item[String]

获取给定列名称的本机格式指定列的值。

Item[Int32]

获取给定列序号的指定列的本机格式的值。

public:
 property System::Object ^ default[int] { System::Object ^ get(int i); };
public:
 virtual property System::Object ^ default[int] { System::Object ^ get(int i); };
public object this[int i] { get; }
public override object this[int i] { get; }
member this.Item(int) : obj
Default Public ReadOnly Property Item(i As Integer) As Object
Default Public Overrides ReadOnly Property Item(i As Integer) As Object

参数

i
Int32

列序号。

属性值

指定列的本机格式的值。

实现

例外

传递的索引超出了 0 到 FieldCount0 的范围。

适用于

Item[String]

获取给定列名称的本机格式指定列的值。

public:
 property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ name); };
public:
 virtual property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ name); };
public object this[string name] { get; }
public override object this[string name] { get; }
member this.Item(string) : obj
Default Public ReadOnly Property Item(name As String) As Object
Default Public Overrides ReadOnly Property Item(name As String) As Object

参数

name
String

列名。

属性值

指定列的本机格式的值。

实现

例外

找不到具有指定名称的列。

适用于