語言

OdbcDataReader.Item[] 屬性

定義

取得欄位的原始格式值。

多載

名稱 Description
Item[Int32]

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

Item[String]

取得指定數據行名稱的原生格式指定數據行的值。

Item[Int32]

來源:
OdbcDataReader.cs
來源:
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
來源:
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

數據行名稱。

屬性值

指定欄位的本體格式值。

實作

例外狀況

未找到指定名稱的柱子。

備註

首先會執行大小寫區分查詢。 若失敗,則進行第二次不區寫搜尋。

這種方法對假名寬度不敏感。

另請參閱

適用於