DataTableReader::FieldCount Property
.NET Framework (current version)
Returns the number of columns in the current row.
Assembly: System.Data (in System.Data.dll)
Property Value
Type: System::Int32When not positioned in a valid result set, 0; otherwise the number of columns in the current row.
Implements
IDataRecord::FieldCount| Exception | Condition |
|---|---|
| InvalidOperationException | An attempt was made to retrieve the field count in a closed DataTableReader. |
.NET Framework
Available since 2.0
Available since 2.0
Show: