GetOrdinal Método
Returns the ordinal position of the specified column.
Espacio de nombres: Microsoft.AnalysisServices.AdomdClient
Ensamblado: Microsoft.AnalysisServices.AdomdClient (en Microsoft.AnalysisServices.AdomdClient.dll)
Sintaxis
'Declaración
Public Function GetOrdinal ( _
name As String _
) As Integer
'Uso
Dim instance As AdomdDataReader
Dim name As String
Dim returnValue As Integer
returnValue = instance.GetOrdinal(name)
public int GetOrdinal(
string name
)
public:
virtual int GetOrdinal(
String^ name
) sealed
abstract GetOrdinal :
name:string -> int
override GetOrdinal :
name:string -> int
public final function GetOrdinal(
name : String
) : int
Parámetros
- name
Tipo: System. . :: . .String
The name of the column to find.
Valor devuelto
Tipo: System. . :: . .Int32
An Integer that contains the ordinal position of the specified column.
Implementa
Comentarios
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.
Vea también