SqlDataReader.HasRows 屬性

定義

取得值,指出 SqlDataReader 是否包含一個或多個資料列。

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

屬性值

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

適用於

另請參閱