Sdílet prostřednictvím


IDataReader.GetName Method

Gets the name of the field to find.

Namespace:  Microsoft.ReportingServices.DataProcessing
Assembly:  Microsoft.ReportingServices.Interfaces (in Microsoft.ReportingServices.Interfaces.dll)

Syntax

'Declaration
Function GetName ( _
    fieldIndex As Integer _
) As String
'Usage
Dim instance As IDataReader
Dim fieldIndex As Integer
Dim returnValue As String

returnValue = instance.GetName(fieldIndex)
string GetName(
    int fieldIndex
)
String^ GetName(
    int fieldIndex
)
abstract GetName : 
        fieldIndex:int -> string 
function GetName(
    fieldIndex : int
) : String

Parameters

  • fieldIndex
    Type: System.Int32
    The index of the field to find.

Return Value

Type: System.String
The name of the field, or the empty string ("") if there is no value to return.

Remarks

Exceptions

Exception type

Condition

IndexOutOfRangeException

The index passed was outside the range of 0 through FieldCount.