GetValueOverride 委托

定义

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

public delegate System::Object ^ GetValueOverride(DependencyObject ^ d);
public delegate object GetValueOverride(DependencyObject d);
type GetValueOverride = delegate of DependencyObject -> obj
Public Delegate Function GetValueOverride(d As DependencyObject) As Object 

参数

返回值

Object

一个 Object,它表示指定的 DependencyProperty 的值。An Object that represents the value of the designated DependencyProperty.

继承
GetValueOverride

注解

备注

本材料讨论的类型和命名空间已废弃不用。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.

GetValueOverride在调用PropertyMetadataRegisterAttached时, 可以在的属性上设置此委托的实现。 RegisterThe implementation of this delegate can be set on the GetValueOverride property of PropertyMetadata while calling Register or RegisterAttached.

扩展方法

GetMethodInfo(Delegate)

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

适用于