Dela via


SqlDataReader.HasRows Property

Definition

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

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

Property Value

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

Applies to