SetValueOverride 委托

定义

允许 SetValue(DependencyProperty, Object) 逻辑的自定义重写,该逻辑与在依赖对象上定义的依赖属性关联。Allows a custom override of the SetValue(DependencyProperty, Object) logic associated with a dependency property that is defined on a dependency object.

public delegate void SetValueOverride(DependencyObject ^ d, System::Object ^ value);
public delegate void SetValueOverride(DependencyObject d, object value);
type SetValueOverride = delegate of DependencyObject * obj -> unit
Public Delegate Sub SetValueOverride(d As DependencyObject, value As Object)

参数

value
Object

要将值设置为的 ObjectThe Object to set the value to.

继承
SetValueOverride

注解

备注

本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

调用 SetValueOverridePropertyMetadata 时,可以将此委托的实现设置为 RegisterRegisterAttached 属性。The implementation of this delegate can be set to the SetValueOverride property of PropertyMetadata while calling Register or RegisterAttached.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于