语言

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 。

实现

适用于