Share via


SqlDataReader.HasRows Properti

Definisi

Mendapatkan nilai yang menunjukkan apakah SqlDataReader berisi satu atau beberapa baris.

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

Nilai Properti

trueSqlDataReader jika berisi satu atau beberapa baris; jika tidakfalse.

Berlaku untuk

Lihat juga