DbConnectionPropertyInterceptionContext<TValue>.AsAsync 方法

定义

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

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)

返回

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

适用于