DbCommandInterceptionContext.AsAsync 方法

定义

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

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

返回

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

适用于