Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Gets the number of columns in the query's SELECT clause.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
Syntax
'Declaration
Public Overrides ReadOnly Property FieldCount As Integer
Get
'Usage
Dim instance As SqlCeDataReader
Dim value As Integer
value = instance.FieldCount
public override int FieldCount { get; }
public:
virtual property int FieldCount {
int get () override;
}
abstract FieldCount : int
override FieldCount : int
override 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.
Implements
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | There is no current connection to a data source. |
Remarks
The result of FieldCount will return the number of columns in the query's SELECT clause, even if 0 rows are returned by the query.