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

屬性值

true 若 包含 SqlDataReader 一列或多列;否則 false

適用於

另請參閱