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 到 FieldCount 的範圍。

適用於

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

資料行名稱。

屬性值

原生格式的指定資料行值。

實作

例外狀況

找不到具有指定名稱的資料行。

適用於