DependencyObject.GetValueBase(DependencyProperty) 方法

定义

提供对 DependencyProperty 绑定对象的访问并绕过 GetValue(DependencyProperty) 替代。

public:
 System::Object ^ GetValueBase(System::Workflow::ComponentModel::DependencyProperty ^ dependencyProperty);
public object GetValueBase(System.Workflow.ComponentModel.DependencyProperty dependencyProperty);
member this.GetValueBase : System.Workflow.ComponentModel.DependencyProperty -> obj
Public Function GetValueBase (dependencyProperty As DependencyProperty) As Object

参数

dependencyProperty
DependencyProperty

DependencyProperty 获取其值。

返回

的绑定对象DependencyProperty 这会绕过 GetValue(DependencyProperty) 替代。

例外

dependencyProperty是空引用(Visual Basic 中的 Nothing)。

注解

此方法在重写实现中 GetValue 非常有用。 通常, GetValue 重写代码会调用该 GetValueBase代码,然后添加其他代码。

若要实现重写,可以在调用中使用GetValuePropertyMetadataRegister。 /RegisterAttached

适用于