OdbcDataReader.Item[] 屬性

定義

取得使用原生格式的資料行值。

多載

Item[Int32]

提供資料行序數,取得使用原生格式的指定資料行值。

Item[String]

提供資料行名稱,取得使用原生格式的指定資料行值。

Item[Int32]

來源:
OdbcDataReader.cs
來源:
OdbcDataReader.cs
來源:
OdbcDataReader.cs

提供資料行序數,取得使用原生格式的指定資料行值。

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

參數

i
Int32

資料行序數。

屬性值

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

實作

例外狀況

傳遞的索引超出 0 到 FieldCount 的範圍。

另請參閱

適用於

Item[String]

來源:
OdbcDataReader.cs
來源:
OdbcDataReader.cs
來源:
OdbcDataReader.cs

提供資料行名稱,取得使用原生格式的指定資料行值。

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

參數

value
String

資料行名稱。

屬性值

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

實作

例外狀況

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

備註

會先執行區分大小寫的查閱。 如果失敗,則會進行第二個不區分大小寫的搜尋。

這個方法不區分假名寬度。

另請參閱

適用於