語言

RelationalConnection.CloseAsync 方法

定義

關閉了與資料庫的連線。

public virtual System.Threading.Tasks.Task<bool> CloseAsync();
abstract member CloseAsync : unit -> System.Threading.Tasks.Task<bool>
override this.CloseAsync : unit -> System.Threading.Tasks.Task<bool>
Public Overridable Function CloseAsync () As Task(Of Boolean)

傳回

一個任務,代表非同步操作,若連線實際關閉,則值為 true 。

實作

適用於