IDataReader.GetOrdinal Método
Return the index of the named field.
Espacio de nombres: Microsoft.ReportingServices.DataProcessing
Ensamblados: Microsoft.ReportingServices.SharePoint.UI.WebParts (en Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
Microsoft.ReportingServices.Interfaces (en Microsoft.ReportingServices.Interfaces.dll)
Sintaxis
'Declaración
Function GetOrdinal ( _
fieldName As String _
) As Integer
'Uso
Dim instance As IDataReader
Dim fieldName As String
Dim returnValue As Integer
returnValue = instance.GetOrdinal(fieldName)
int GetOrdinal(
string fieldName
)
int GetOrdinal(
String^ fieldName
)
abstract GetOrdinal :
fieldName:string -> int
function GetOrdinal(
fieldName : String
) : int
Parámetros
- fieldName
Tipo: System.String
The name of the field to find.
Valor devuelto
Tipo: System.Int32
The index of the named field.
Comentarios
GetOrdinal performs a case-sensitive lookup first. If it fails, a second case-insensitive search is made.
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
Referencia
Espacio de nombres Microsoft.ReportingServices.DataProcessing