Share via


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,要取得其值。

傳回

Object

DependencyProperty 的繫結物件。 這會略過 GetValue(DependencyProperty) 覆寫。

例外狀況

dependencyProperty 為 null 參考 (在 Visual Basic 中為 Nothing)。

備註

這個方法在 GetValue 覆寫實作內部很有用。 一般而言,GetValue 覆寫程式碼會叫用 GetValueBase,然後加入額外的程式碼。

若要實作 GetValue 覆寫, PropertyMetadata 可以在呼叫中使用 / Register RegisterAttached

適用於