DbDataReader.FieldCount DbDataReader.FieldCount DbDataReader.FieldCount DbDataReader.FieldCount Property

定义

在派生类中重写时,获取当前行中的列数。When overridden in a derived class, gets the number of columns in the current row.

public:
 abstract property int FieldCount { int get(); };
public abstract int FieldCount { get; }
member this.FieldCount : int
Public MustOverride ReadOnly Property FieldCount As Integer

属性值

当前行中的列数。The number of columns in the current row.

实现

异常

没有对 SQL Server 实例的当前连接。There is no current connection to an instance of SQL Server.

注解

包括隐藏的字段。Includes hidden fields. 使用 VisibleFieldCount 可排除隐藏的字段。Use VisibleFieldCount to exclude hidden fields.

适用于

另请参阅