Поделиться через


AdomdDataReader.GetOrdinal Method

Returns the ordinal position of the specified column.

Пространство имен: Microsoft.AnalysisServices.AdomdClient
Сборка: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)

Синтаксис

'Декларация
Public Function GetOrdinal ( _
    name As String _
) As Integer
public int GetOrdinal (
    string name
)
public:
virtual int GetOrdinal (
    String^ name
) sealed
public final int GetOrdinal (
    String name
)
public final function GetOrdinal (
    name : String
) : int

Параметры

  • name
    The name of the column to find.

Возвращаемое значение

An Integer that contains the ordinal position of the specified column.

Замечания

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.

Синхронизация потоков

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

AdomdDataReader Class
AdomdDataReader Members
Microsoft.AnalysisServices.AdomdClient Namespace