FieldCount Property
Collapse the table of content
Expand the table of content

DbDataRecord.FieldCount Property

 

Indicates the number of fields within the current record. This property is read-only.

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)

public abstract int FieldCount { get; }

Property Value

Type: System.Int32

The number of fields within the current record.

Exception Condition
NotSupportedException

Not connected to a data source to read from.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft