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

将分配给目标属性的值。

返回

与给定属性值关联的新拦截上下文。

适用于