DbDataRecord.GetOrdinal(String) 方法

定义

在给定列名时返回列序号。

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

参数

name
String

列的名称。

返回

列序号。

实现

适用于

另请参阅