Compartir a través de


FieldCount Propiedad

Gets the number of fields in the data reader.

Espacio de nombres:  Microsoft.ReportingServices.DataProcessing
Ensamblado:  Microsoft.ReportingServices.Interfaces (en Microsoft.ReportingServices.Interfaces.dll)

Sintaxis

'Declaración
ReadOnly Property FieldCount As Integer
    Get
'Uso
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

Valor de la propiedad

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

Notas

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