Sprache

SqlDataReader.HasRows Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob die SqlDataReader ein oder mehrere Zeilen enthält.

Verwenden Sie für die neue Entwicklung Microsoft. Data.SqlClient. Diese Seite dokumentiert System.Data.SqlClient.

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

Eigenschaftswert

true wenn die SqlDataReader Eine oder mehrere Zeilen enthält; andernfalls false.

Gilt für:

Siehe auch