Language

DbCommandInterceptionContext<TResult>.WithCommandBehavior メソッド

定義

特定のCommandBehaviorと共に、このインターセプト コンテキスト内のすべてのコンテキスト情報を含む新しいDbCommandInterceptionContext<TResult>を作成します。

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>

パラメーター

commandBehavior
CommandBehavior

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

戻り値

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

適用対象