DbDataReader.GetOrdinal(String) DbDataReader.GetOrdinal(String) DbDataReader.GetOrdinal(String) DbDataReader.GetOrdinal(String) Method

Definition

Gets the column ordinal given the name of the column.

public:
 abstract int GetOrdinal(System::String ^ name);
public abstract int GetOrdinal (string name);
abstract member GetOrdinal : string -> int
Public MustOverride Function GetOrdinal (name As String) As Integer

Parameters

name
String String String String

The name of the column.

Returns

The zero-based column ordinal.

Implements

Exceptions

Applies to

See also