語言

MutableInterceptionContext<TResult>.WithObjectContext 方法

定義

建立 MutableInterceptionContext<TResult> 一個新 ,包含此攔截上下文中所有上下文資訊,並加上給定 ObjectContext的 。

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

參數

context
ObjectContext

要有關聯的情境。

傳回

一個與該上下文相關的新攔截上下文。

適用於