語言

DbConnectionPropertyInterceptionContext<TValue>.AsAsync 方法

定義

建立一個包含此攔截上下文中所有上下文資訊的新檔案 DbConnectionPropertyInterceptionContext<TValue> ,並將 IsAsync 標記設為 true。

public System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext<TValue> AsAsync();
override this.AsAsync : unit -> System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext<'Value>
Public Function AsAsync () As DbConnectionPropertyInterceptionContext(Of TValue)

傳回

一個與非同步旗標相關的新攔截上下文。

適用於