语言

PropertyInterceptionContext<TValue>.WithObjectContext 方法

定义

创建一个包含此截获上下文中所有上下文信息以及添加给定ObjectContext内容的新PropertyInterceptionContext<TValue>内容。

public System.Data.Entity.Infrastructure.Interception.PropertyInterceptionContext<TValue> WithObjectContext(System.Data.Entity.Core.Objects.ObjectContext context);
override this.WithObjectContext : System.Data.Entity.Core.Objects.ObjectContext -> System.Data.Entity.Infrastructure.Interception.PropertyInterceptionContext<'Value>
Public Function WithObjectContext (context As ObjectContext) As PropertyInterceptionContext(Of TValue)

参数

context
ObjectContext

要关联的上下文。

返回

与给定上下文关联的新拦截上下文。

适用于