Sprache

MutableInterceptionContext<TResult>.WithObjectContext Methode

Definition

Erstellt eine neue MutableInterceptionContext<TResult> , die alle kontextbezogenen Informationen in diesem Abfangenkontext mit dem Hinzufügen der angegebenen ObjectContextEnthält.

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)

Parameter

context
ObjectContext

Der kontext, der zugeordnet werden soll.

Gibt zurück

Ein neuer Abfangenkontext, der dem angegebenen Kontext zugeordnet ist.

Gilt für: