語言

DbConnectionPropertyInterceptionContext<TValue>.WithValue 方法

定義

建立 DbConnectionPropertyInterceptionContext<TValue> 一個新 Solve,包含該攔截上下文中所有上下文資訊及給定屬性值。

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

將被賦予目標屬性的價值。

傳回

與給定屬性值相關的新攔截上下文。

適用於