Sprache

DbCommandInterceptionContext<TResult>.WithCommandBehavior Methode

Definition

Erstellt eine neue DbCommandInterceptionContext<TResult> , die alle kontextbezogenen Informationen in diesem Abfangenkontext zusammen mit dem angegebenen CommandBehaviorenthält.

public System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<TResult> WithCommandBehavior(System.Data.CommandBehavior commandBehavior);
override this.WithCommandBehavior : System.Data.CommandBehavior -> System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result>

Parameter

commandBehavior
CommandBehavior

Das Befehlsverhalten, das zugeordnet werden soll.

Gibt zurück

Ein neuer Abfangenkontext, der dem angegebenen Befehlsverhalten zugeordnet ist.

Gilt für: