Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
ReadOnly Property FieldCount As Integer
Get
'Usage
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
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.
Remarks
After executing a query that does not return rows, FieldCount returns -1.