SqlDataReader.IDataRecord.GetData Method (Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns an IDataReader for the specified column ordinal.

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

IDataReader IDataRecord.GetData(
	int i


Type: System.Int32

A column ordinal.

Return Value

Type: System.Data.IDataReader

The IDataReader instance for the specified column ordinal.

This member is an explicit interface member implementation. It can be used only when the SqlDataReader instance is cast to an T:System.IDataRecord interface.

.NET Framework
Available since 2.0
Return to top