PropertyInterceptionContext<TValue>.WithValue(TValue) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个包含此拦截上下文中所有上下文信息以及给定属性值的新 BeginTransactionInterceptionContext 内容。
public System.Data.Entity.Infrastructure.Interception.PropertyInterceptionContext<TValue> WithValue(TValue value);
member this.WithValue : 'Value -> System.Data.Entity.Infrastructure.Interception.PropertyInterceptionContext<'Value>
Public Function WithValue (value As TValue) As PropertyInterceptionContext(Of TValue)
参数
- value
- TValue
将分配给目标属性的值。
返回
与给定属性值关联的新拦截上下文。