Свойство IDataReader.FieldCount

Gets the number of fields in the data reader.

Пространство имен:  Microsoft.ReportingServices.DataProcessing
Сборки:   Microsoft.ReportingServices.SharePoint.UI.WebParts (в Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
  Microsoft.ReportingServices.Interfaces (в Microsoft.ReportingServices.Interfaces.dll)

Синтаксис

'Декларация
ReadOnly Property FieldCount As Integer 
    Get
'Применение
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

Значение свойства

Тип: System.Int32
When not positioned in a valid recordset, 0; otherwise the number of columns in the current record. The default value is -1.

Замечания

After executing a query that does not return rows, FieldCount returns -1.

См. также

Справочник

IDataReader Интерфейс

Пространство имен Microsoft.ReportingServices.DataProcessing