日志文章

2006年03月28日 17:24:12

OracleDataReader.FieldCount 属性 [Visual Basic](NET)

OracleDataReader.FieldCount 属性  [Visual Basic]

注意:此命名空间、类或成员仅在 .NET Framework 1.1 版中受支持。

获取当前行中的列数。

Public Overridable ReadOnly Property FieldCount As Integer  _
   Implements IDataRecord.FieldCount

 

 

 

 

属性值

如果不是位于有效的记录集中,则为 0;否则为当前记录的列数。默认值为 -1。

实现

IDataRecord.FieldCount

异常

异常类型 条件
NotSupportedException 没有到数据源的当前连接。

备注

执行不返回行的查询后,FieldCount 返回 0。

要求

平台: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 系列

类别: .NET |  评论(0) |  浏览(2225) |  收藏
发表评论