Επεξεργασία

Κοινή χρήση μέσω


SqlDataReader.VisibleFieldCount Property

Definition

Gets the number of fields in the SqlDataReader 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

Property Value

The number of fields that are not hidden.

Remarks

This value is used to determine how many fields in the SqlDataReader are visible. 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.

Applies to

See also