共用方式為


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

將指派給目標屬性的值。

傳回

與指定屬性值相關聯的新攔截內容。

適用於