SqlDataReader.GetValue(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定欄位的本位格式值。
public:
virtual System::Object ^ GetValue(int i);
public:
override System::Object ^ GetValue(int i);
public object GetValue(int i);
public override object GetValue(int i);
abstract member GetValue : int -> obj
override this.GetValue : int -> obj
override this.GetValue : int -> obj
Public Function GetValue (i As Integer) As Object
Public Overrides Function GetValue (i As Integer) As Object
參數
- i
- Int32
零基列序數。
傳回
此方法回傳 DBNull 為空資料庫欄位。
實作
備註
GetValue 會回傳使用.NET類型的資料。