DbCommandTreeInterceptionContext.AsAsync 方法

定义

创建一个新的 DbCommandTreeInterceptionContext ,其中包含此截获上下文中的所有上下文信息, IsAsync 该上下文设置为 true。

public System.Data.Entity.Infrastructure.Interception.DbCommandTreeInterceptionContext AsAsync ();
override this.AsAsync : unit -> System.Data.Entity.Infrastructure.Interception.DbCommandTreeInterceptionContext
Public Function AsAsync () As DbCommandTreeInterceptionContext

返回

与异步标志集关联的新拦截上下文。

适用于