OleDbDataReader.GetData(Int32) 方法

定义

返回请求的列序号的 OleDbDataReader 对象。Returns an OleDbDataReader object for the requested column ordinal.

public:
 System::Data::OleDb::OleDbDataReader ^ GetData(int ordinal);
public System.Data.OleDb.OleDbDataReader GetData (int ordinal);
override this.GetData : int -> System.Data.OleDb.OleDbDataReader
Public Function GetData (ordinal As Integer) As OleDbDataReader

参数

ordinal
Int32

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

返回

一个 OleDbDataReader 对象。An OleDbDataReader object.

注解

如果提供程序GetData返回IDataReader Fill 的列具有支持的列,IDataReader则将调用。The Fill will call GetData if the provider returns a IDataReader that has a column that supports IDataReader.

适用于

另请参阅