Udostępnij przez


Metoda IDataReader.GetName

Pobiera nazwę pole, aby znaleźć.

Przestrzeń nazw:  Microsoft.ReportingServices.DataProcessing
Zestawy:   Microsoft.ReportingServices.Interfaces (w Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (w Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

Składnia

'Deklaracja
Function GetName ( _
    fieldIndex As Integer _
) As String
'Użycie
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

Parametry

Wartość zwracana

Typ: System.String
Nazwa pole lub pusty ciąg (""), jeśli nie ma wartości do zwrócenia.

Uwagi

Wyjątki

Typ wyjątku

Warunek

IndexOutOfRangeException

Przekazywany indeks był spoza zakres od 0 do FieldCount.