DbDataReader.HasRows 屬性

定義

在衍生類別中覆寫時,取得指出這個 DbDataReader 是否包含一或多個資料列的值。

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

屬性值

如果 DbDataReader 包含一個或更多資料列,則為 true,否則為 false

適用於

另請參閱