Język

SqlDataReader.HasRows Właściwość

Definicja

Pobiera wartość wskazującą, czy SqlDataReader element zawiera co najmniej jeden wiersz.

W przypadku nowego programowania użyj Microsoft. Data.SqlClient. Ta strona zawiera dokumenty 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

Wartość właściwości

true jeśli zawiera SqlDataReader co najmniej jeden wiersz; w przeciwnym razie false.

Dotyczy

Zobacz też