FieldCount Property (DbDataReaderBase)
Gets the number of columns in the current row.
public override int FieldCount {get;}
'Declaration
Public Overrides ReadOnly Property FieldCount As Integer
Property Value
When not positioned in a valid record set, 0; otherwise the number of columns in the current record. The default value is -1.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2