DependencyObject.GetValueBase(DependencyProperty) DependencyObject.GetValueBase(DependencyProperty) DependencyObject.GetValueBase(DependencyProperty) Method

定義

提供對 DependencyProperty 其繫結物件的存取,並略過 GetValue(DependencyProperty) 覆寫。Provides access to the bound object of a DependencyProperty and bypasses the GetValue(DependencyProperty) override.

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

參數

dependencyProperty
DependencyProperty DependencyProperty DependencyProperty

DependencyProperty,要取得其值。The DependencyProperty to get the value of.

傳回

DependencyProperty 的繫結物件。The bound object of a DependencyProperty. 這會略過 GetValue(DependencyProperty) 覆寫。This bypasses the GetValue(DependencyProperty) override.

例外狀況

dependencyProperty 為 null 參考 (在 Visual Basic 中為 Nothing)。dependencyProperty is a null reference (Nothing in Visual Basic).

備註

這個方法在 GetValue 覆寫實作內部很有用。This method is useful inside the GetValue override implementation. 一般而言,GetValue 覆寫程式碼會叫用 GetValueBase,然後加入額外的程式碼。Typically, the GetValue override code invokes the GetValueBase, and then adds additional code.

若要執行GetValue覆寫PropertyMetadata , 可以在呼叫Register中/ RegisterAttached使用。For implementing the GetValue override, PropertyMetadata can be used in Register/RegisterAttached calls.

適用於