This documentation is archived and is not being maintained.

OracleDataReader.FieldCount Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets the number of columns in the current row.

[Visual Basic]
Public Overridable ReadOnly Property FieldCount As Integer  _
   Implements IDataRecord.FieldCount
[C#]
public virtual int FieldCount {get;}
[C++]
public: __property virtual int get_FieldCount();
[JScript]
public function get FieldCount() : int;

Property Value

When not positioned in a valid record set, 0; otherwise the number of columns in the current record. The default is -1.

Implements

IDataRecord.FieldCount

Exceptions

Exception Type Condition
NotSupportedException There is no current connection to a data source.

Remarks

After executing a query that does not return rows, FieldCount returns 0.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

OracleDataReader Class | OracleDataReader Members | System.Data.OracleClient Namespace

Show: