DbDataReader.GetValue(Int32) 方法

定義

在衍生類別中覆寫時,取得指定資料行的值作為 Object 的執行個體。

public:
 abstract System::Object ^ GetValue(int ordinal);
public abstract object GetValue (int ordinal);
abstract member GetValue : int -> obj
Public MustOverride Function GetValue (ordinal As Integer) As Object

參數

ordinal
Int32

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

傳回

指定的資料行值。

實作

例外狀況

資料行索引超出範圍。

適用於

另請參閱