IDataRecord.GetData(Int32) Method

Definition

Returns 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

Parameters

i
Int32

The index of the field to find.

Returns

The IDataReader for the specified column ordinal.

Exceptions

The index passed was outside the range of 0 through FieldCount.

Applies to