语言

MutableInterceptionContext<TResult>.AsAsync 方法

定义

创建一个新 MutableInterceptionContext<TResult> 内容,其中包含此拦截上下文中的所有上下文信息,并将 IsAsync 标志设置为 true。

public System.Data.Entity.Infrastructure.Interception.MutableInterceptionContext<TResult> AsAsync();
override this.AsAsync : unit -> System.Data.Entity.Infrastructure.Interception.MutableInterceptionContext<'Result>
Public Function AsAsync () As MutableInterceptionContext(Of TResult)

返回

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

适用于