共用方式為


AdomdDataReader.GetOrdinal 方法

Returns the ordinal position of the specified column.

命名空間:  Microsoft.AnalysisServices.AdomdServer
組件:  msmgdsrv (在 msmgdsrv.dll 中)

語法

'宣告
Public Function GetOrdinal ( _
    As String _
) As Integer
'用途
Dim instance As AdomdDataReader 
DimAs String 
Dim returnValue As Integer 

returnValue = instance.GetOrdinal()
public int GetOrdinal(
    string
)
public:
virtual int GetOrdinal(
    String^ 
) sealed
abstract GetOrdinal : 
        :string -> int  
override GetOrdinal : 
        :string -> int
public final function GetOrdinal(
     : String
) : int

參數

  • __unnamed0
    型別:System.String
    The name of the column to find.

傳回值

型別:System.Int32
An Integer that contains the ordinal position of the specified column.

實作

IDataRecord.GetOrdinal(String)

備註

GetOrdinal performs a case-insensitive lookup.

GetOrdinal is kana-width insensitive.

Because ordinal-based lookups are more efficient than named lookups, it is inefficient to call GetOrdinal within a loop. Save time by calling GetOrdinal once and assigning the results to an integer variable for use within the loop.

請參閱

參考

AdomdDataReader 類別

Microsoft.AnalysisServices.AdomdServer 命名空間