OleDbDataReader.VisibleFieldCount 属性

定义

获取 OleDbDataReader 中未隐藏的字段的数目。Gets the number of fields in the OleDbDataReader that are not hidden.

public:
 virtual property int VisibleFieldCount { int get(); };
public override int VisibleFieldCount { get; }
member this.VisibleFieldCount : int
Public Overrides ReadOnly Property VisibleFieldCount As Integer

属性值

未隐藏的字段的数目。The number of fields that are not hidden.

注解

此值用于确定 OleDbDataReader 中的可见字段的数目。This value is used to determine how many fields in the OleDbDataReader are visible. 例如,对分部主键执行 SELECT 将以隐藏字段的形式返回该键的其余部分。For example, a SELECT on a partial primary key returns the remaining parts of the key as hidden fields. 隐藏的字段始终追加在可见字段之后。The hidden fields are always appended behind the visible fields.

适用于

另请参阅