IDataReader.GetOrdinal 메서드
Return the index of the named field.
네임스페이스: Microsoft.ReportingServices.DataProcessing
어셈블리: Microsoft.ReportingServices.SharePoint.UI.WebParts(Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
Microsoft.ReportingServices.Interfaces(Microsoft.ReportingServices.Interfaces.dll)
구문
‘선언
Function GetOrdinal ( _
fieldName As String _
) As Integer
‘사용 방법
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
매개 변수
- fieldName
유형: System.String
The name of the field to find.
반환 값
유형: System.Int32
The index of the named field.
주의
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.