DependencyObject 類別

定義

警告

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

所有具相依性屬性之物件的基底類別。 這個類別必須被繼承。

public ref class DependencyObject abstract : IDisposable, System::ComponentModel::IComponent
public abstract class DependencyObject : IDisposable, System.ComponentModel.IComponent
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public abstract class DependencyObject : IDisposable, System.ComponentModel.IComponent
type DependencyObject = class
    interface IComponent
    interface IDisposable
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type DependencyObject = class
    interface IComponent
    interface IDisposable
Public MustInherit Class DependencyObject
Implements IComponent, IDisposable
繼承
DependencyObject
衍生
屬性
實作

備註

注意

此資料討論已被汰換的類型及命名空間。 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型

建構函式

DependencyObject()

在衍生類別中實作時,初始化 DependencyObject 類別的新執行個體。

屬性

DesignMode

取得值,這個值會指出這個執行個體是在設計模式或執行階段模式中。

ParentDependencyObject

取得 DependencyObject 圖形中的父代 DependencyObject

Site

取得或設定 SiteDependencyObject 元件的參考。

UserData

取得 IDictionary,它會將自訂資料與這個類別執行個體產生關聯。

方法

AddHandler(DependencyProperty, Object)

加入 之事件的處理常式。

Dispose()

釋放 DependencyObject 使用的所有資源。

Dispose(Boolean)

會釋放 Unmanaged 資源,並選擇性地釋放 DependencyObject 所使用的 Managed 資源。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
Finalize()

提供做為對 Finalize() 的覆寫,以決定性的清除任何 Unmanaged 的資源。

GetBinding(DependencyProperty)

提供存取與特定 ActivityBind 相關聯的 DependencyProperty

GetBoundValue(ActivityBind, Type)

擷取 Object,其為 ActivityBind 的主體。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetInvocationList<T>(DependencyProperty)

取得陣列,這個陣列包含指定 DependencyProperty 的委派。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
GetValue(DependencyProperty)

提供存取所指定 DependencyProperty 的值。

GetValueBase(DependencyProperty)

提供對 DependencyProperty 其繫結物件的存取,並略過 GetValue(DependencyProperty) 覆寫。

InitializeProperties()

在衍生類別中覆寫時,在相依性屬性上執行初始化。

IsBindingSet(DependencyProperty)

指出 DependencyProperty 的值是否已設定為繫結。 請參閱 SetBinding(DependencyProperty, ActivityBind)

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
MetaEquals(DependencyObject)

判斷這個 的 是否相等於參數化 的 。

RemoveHandler(DependencyProperty, Object)

EventHandler 從相關聯的 DependencyProperty 移除。

RemoveProperty(DependencyProperty)

DependencyPropertyDependencyObject 中移除。

SetBinding(DependencyProperty, ActivityBind)

設定所指定 ActivityBindDependencyProperty

SetBoundValue(ActivityBind, Object)

設定目標 ActivityBind 的值。

SetReadOnlyPropertyValue(DependencyProperty, Object)

設定唯讀的 DependencyProperty 其值。

SetValue(DependencyProperty, Object)

DependencyProperty 的值設定給物件。

SetValueBase(DependencyProperty, Object)

DependencyProperty 的值設定為指定的 Object,略過 SetValue(DependencyProperty, Object)

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

IComponent.Disposed

表示處理元件 Disposed 事件的方法。

適用於