IDataReader.FieldCount Property


Updated: February 25, 2016

Gets the number of fields in the data reader.

Namespace:   Microsoft.ReportingServices.DataProcessing
Assemblies:   Microsoft.ReportingServices.Interfaces (in Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

int FieldCount { get; }

Property Value

Type: 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.

Return to top