ConnectionManager.IsOpen 屬性

定義

如果 SqlConnection 物件與伺服器有連線,則會回傳 true。 這只能在非池化連線中回應,因為組化連線在操作結束後總是直接閉合。

public bool IsOpen { get; }
member this.IsOpen : bool
Public ReadOnly Property IsOpen As Boolean

屬性值

適用於