Метод 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.