Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Return the index of the named field.
Namespace: Microsoft.ReportingServices.DataProcessing
Assemblies: Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
Microsoft.ReportingServices.Interfaces (in Microsoft.ReportingServices.Interfaces.dll)
Syntax
'Declaration
Function GetOrdinal ( _
fieldName As String _
) As Integer
'Usage
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
Parameters
- fieldName
Type: System.String
The name of the field to find.
Return Value
Type: System.Int32
The index of the named field.
Remarks
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.