RelationalConnection.Close 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
關閉與資料庫的連接。
C#
public virtual void Close ();
C#
public virtual bool Close ();
abstract member Close : unit -> unit
override this.Close : unit -> unit
abstract member Close : unit -> bool
override this.Close : unit -> bool
Public Overridable Sub Close ()
Public Overridable Function Close () As Boolean
true
如果基礎連線實際上已關閉,則為 ; false
否則。
產品 | 版本 |
---|---|
Entity Framework Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |