SqlDataReader.GetValue(Int32) 方法

定義

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

public:
 override System::Object ^ GetValue(int i);
public:
 virtual System::Object ^ GetValue(int i);
public override object GetValue (int i);
public object GetValue (int i);
override this.GetValue : int -> obj
abstract member GetValue : int -> obj
override this.GetValue : int -> obj
Public Overrides Function GetValue (i As Integer) As Object
Public Function GetValue (i As Integer) As Object

參數

i
Int32

以零為基底的資料行序數。

傳回

對於 null 資料庫資料行來說,這個方法會傳回 DBNull

實作

備註

GetValue使用.NET Framework型別傳回資料。

適用於

另請參閱