SqlDataRecord.GetOrdinal(String) SqlDataRecord.GetOrdinal(String) SqlDataRecord.GetOrdinal(String) SqlDataRecord.GetOrdinal(String) Method

Definition

Returns the column ordinal specified by the column name.

public:
 virtual int GetOrdinal(System::String ^ name);
public virtual int GetOrdinal (string name);
abstract member GetOrdinal : string -> int
override this.GetOrdinal : string -> int
Public Overridable Function GetOrdinal (name As String) As Integer

Parameters

name
String String String String

The name of the column to look up.

Returns

The zero-based ordinal of the column as an integer.

Implements

Exceptions

Applies to