次の方法で共有


DbConnectionPropertyInterceptionContext<TValue>.WithValue メソッド

定義

指定したプロパティ値と共に、このインターセプト コンテキスト内のすべてのコンテキスト情報を含む新しい DbConnectionPropertyInterceptionContext<TValue> を作成します。

public System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext<TValue> WithValue (TValue value);
override this.WithValue : 'Value -> System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext<'Value>
Public Function WithValue (value As TValue) As DbConnectionPropertyInterceptionContext(Of TValue)

パラメーター

value
TValue

ターゲット プロパティに割り当てられる値。

戻り値

指定されたプロパティ値に関連付けられた新しいインターセプト コンテキスト。

適用対象