OleDbDataReader.GetValue(Int32) 方法

定义

获取以本机格式表示的指定序号处的列的值。Gets the value of the column at the specified ordinal in its native format.

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

参数

ordinal
Int32

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

返回

要返回的值。The value to return.

注解

对于 null 数据库列,此方法返回 DBNullThis method returns DBNull for null database columns.

适用于

另请参阅