DbDataReader.GetValue(Int32) DbDataReader.GetValue(Int32) DbDataReader.GetValue(Int32) DbDataReader.GetValue(Int32) Method

定义

在派生类中重写时,以 Object 实例的形式获取指定列的值。When overridden in a derived class, gets the value of the specified column as an instance of 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 Int32 Int32 Int32

从零开始的列序号。The zero-based column ordinal.

返回

指定列的值。The value of the specified column.

实现

异常

适用于

另请参阅