Freigeben über


DbCommandInterceptionContext.WithCommandBehavior(CommandBehavior) Methode

Definition

Erstellt eine neue DbCommandInterceptionContext , die alle Kontextinformationen in diesem Abhörkontext zusammen mit dem angegebenen CommandBehaviorenthält.

public System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext WithCommandBehavior (System.Data.CommandBehavior commandBehavior);
member this.WithCommandBehavior : System.Data.CommandBehavior -> System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext

Parameter

commandBehavior
CommandBehavior

Das zuzuordnende Befehlsverhalten.

Gibt zurück

Ein neuer Abfangkontext, der dem angegebenen Befehlsverhalten zugeordnet ist.

Gilt für: