DbCommandTreeInterceptionContext.AsAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个新的 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
返回
与异步标志集关联的新拦截上下文。