OracleDataReader.FieldCount 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取当前行中的列数。
public:
property int FieldCount { int get(); };
public:
virtual property int FieldCount { int get(); };
public int FieldCount { get; }
public override int FieldCount { get; }
member this.FieldCount : int
Public ReadOnly Property FieldCount As Integer
Public Overrides ReadOnly Property FieldCount As Integer
属性值
如果未定位在有效的记录集中,则为 0;否则,当前记录中的列数。 默认值为 -1。
实现
例外
没有与数据源的当前连接。
注解
包括隐藏字段。 用于 VisibleFieldCount 排除隐藏字段。
执行不返回行的查询后, FieldCount 返回 0。