共用方式為


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

資料行名稱。

傳回

資料行序數。

實作

適用於

另請參閱