DependencyObject.UserData 屬性

定義

取得將自定義數據與這個類別實例產生關聯的 IDictionary

public:
 property System::Collections::IDictionary ^ UserData { System::Collections::IDictionary ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Collections.IDictionary UserData { get; }
[<System.ComponentModel.Browsable(false)>]
member this.UserData : System.Collections.IDictionary
Public ReadOnly Property UserData As IDictionary

屬性值

一個字典,作為擴充鉤子,讓開發者能操作 DependencyObject 設計工具的宣告,並將自訂資料與個別活動宣告關聯起來。

屬性

備註

此性質為 metaproperty,表示執行時不可變。 Metaproperties 在執行時建立屬性實例後,屬性不得更改,因此該屬性必須在設計時設定為字面值。

此特性未用於 Windows Workflow Foundation 提供的預設 Activity 宣告實作。 本合集未連載;集合所包含的資料不會從設計時持續保存到執行時。

適用於