Export (0) Print
Expand All

IDataReader.FieldCount Property

Gets the number of fields in the data reader.

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

int FieldCount { get; }

Property Value

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

Community Additions

© 2014 Microsoft