다음을 통해 공유


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 네임스페이스