DbDataReader::FieldCount Property


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)

property int FieldCount {
	virtual int get() abstract;

Property Value

Type: System::Int32

The number of columns in the current row.

Exception Condition

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