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

DbDataReader.FieldCount Property

 

Gets the number of columns in the current row.

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

Public MustOverride ReadOnly Property FieldCount As Integer

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:
© 2016 Microsoft