SqlDataReader.GetValue(Int32) 方法

定義

取得指定欄位的本位格式值。

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類型的資料。

適用於

另請參閱