DbDataReader.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定欄位的值作為 的 Object實例。
多載
| 名稱 | Description |
|---|---|
| Item[Int32] |
當在派生類別中覆寫時,會獲得指定欄位的值,作為 的 Object實例。 |
| Item[String] |
當在派生類別中覆寫時,會獲得指定欄位的值,作為 的 Object實例。 |
Item[Int32]
當在派生類別中覆寫時,會獲得指定欄位的值,作為 的 Object實例。
public:
abstract property System::Object ^ default[int] { System::Object ^ get(int ordinal); };
public abstract object this[int ordinal] { get; }
member this.Item(int) : obj
Default Public MustOverride ReadOnly Property Item(ordinal As Integer) As Object
參數
- ordinal
- Int32
零基列序數。
屬性值
指定欄位的值。
實作
例外狀況
欄位索引超出範圍。
另請參閱
適用於
Item[String]
當在派生類別中覆寫時,會獲得指定欄位的值,作為 的 Object實例。
public:
abstract property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ name); };
public abstract object this[string name] { get; }
member this.Item(string) : obj
Default Public MustOverride ReadOnly Property Item(name As String) As Object
參數
- name
- String
欄位名稱。
屬性值
指定欄位的值。
實作
例外狀況
未找到指定名稱的柱子。