Właściwość IDataReader.FieldCount
Pobiera numer pola w programie reader danych.
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
ReadOnly Property FieldCount As Integer
Get
'Użycie
Dim instance As IDataReader
Dim value As Integer
value = instance.FieldCount
int FieldCount { get; }
property int FieldCount {
int get ();
}
abstract FieldCount : int
function get FieldCount () : int
Wartość właściwości
Typ: System.Int32
Gdy nie jest umieszczony w prawidłowym rekordów, 0; w przeciwnym razie numer kolumny w bieżącym rekordzie.Wartością domyślną jest -1.
Uwagi
Po wykonaniu kwerendy, która nie zwraca wierszy, FieldCount zwraca wartość -1.
Zobacz także