DependencyObject.GetValueBase(DependencyProperty) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供对 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