FieldCount property

Description

The number of columns in the result set.

Syntax

int FieldCount

Access

Read-only

Property Value

When not positioned in a valid record set, 0; otherwise the number of columns in the current record. The default is -1.

Implements

IDataRecord.FieldCount

Usage

When not positioned in a valid record set, this property has a value of 0; otherwise, it is the number of columns in the current record. The default is -1.