DbConnectionPropertyInterceptionContext<TValue>.WithValue 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个新的 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
将分配给目标属性的值。
返回
与给定属性值关联的新拦截上下文。