DbDataReader.FieldCount Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the number of columns in the current row.

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

abstract FieldCount : int with get

Property Value

Type: System.Int32

The number of columns in the current row.

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
Return to top
Show: