SqlDataReader.HasRows Property

Definition

Gets a value that indicates whether the SqlDataReader contains one or more rows.

public:
 property bool HasRows { bool get(); };
public bool HasRows { get; }
member this.HasRows : bool
Public ReadOnly Property HasRows As Boolean

Property Value

true if the SqlDataReader contains one or more rows; otherwise false.

Applies to

See also