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)

例外狀況

是一個空參考()。

備註

此方法在 GetValue 覆寫實作中非常有用。 通常, GetValue 覆寫碼會呼叫 , GetValueBase然後加入額外的程式碼。

為了實作覆寫,GetValue可以在PropertyMetadataRegister/呼叫中使用。 RegisterAttached

適用於