The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DbDataReader::FieldCount Property
.NET Framework (current version)
Gets the number of columns in the current row.
Assembly: System.Data (in System.Data.dll)
Implements
IDataRecord::FieldCount| Exception | Condition |
|---|---|
| NotSupportedException | There is no current connection to an instance of SQL Server. |
Includes hidden fields. Use VisibleFieldCount to exclude hidden fields.
Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Available since 10
.NET Framework
Available since 2.0
Show: