DbDataRecord.GetOrdinal Method (String)

 

Returns the column ordinal, given the name of the column.

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

public abstract int GetOrdinal(
	string name
)

Parameters

name
Type: System.String

The name of the column.

Return Value

Type: System.Int32

The column ordinal.

.NET Framework
Available since 1.1
Return to top
Show: