IDataRecord.GetData(Int32) IDataRecord.GetData(Int32) IDataRecord.GetData(Int32) IDataRecord.GetData(Int32) Method

定义

返回指定列序号的 IDataReaderReturns an IDataReader for the specified column ordinal.

public:
 System::Data::IDataReader ^ GetData(int i);
public System.Data.IDataReader GetData (int i);
abstract member GetData : int -> System.Data.IDataReader
Public Function GetData (i As Integer) As IDataReader

参数

i
Int32 Int32 Int32 Int32

要查找的字段的索引。The index of the field to find.

返回

指定列序号的 IDataReaderThe IDataReader for the specified column ordinal.

异常

传递的索引位于 0 至 FieldCount 的范围之外。The index passed was outside the range of 0 through FieldCount.

适用于