DbCommandInterceptionContext.WithCommandBehavior(CommandBehavior) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée un DbCommandInterceptionContext qui contient toutes les informations contextuelles dans ce contexte d’interception avec le donné CommandBehavior.
public System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext WithCommandBehavior(System.Data.CommandBehavior commandBehavior);
member this.WithCommandBehavior : System.Data.CommandBehavior -> System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext
Paramètres
- commandBehavior
- CommandBehavior
Comportement de commande à associer.
Retours
Nouveau contexte d’interception associé au comportement de commande donné.