次の方法で共有


DbCommandInterceptionContext.WithCommandBehavior(CommandBehavior) メソッド

定義

指定した と共に、このインターセプト コンテキスト内のすべてのコンテキスト情報を含む新しい DbCommandInterceptionContext を作成します 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

パラメーター

commandBehavior
CommandBehavior

関連付けるコマンドの動作。

戻り値

指定されたコマンド動作に関連付けられた新しいインターセプト コンテキスト。

適用対象