DependencyObject.UserData 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得將自定義數據與這個類別實例產生關聯的 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 宣告實作。 本合集未連載;集合所包含的資料不會從設計時持續保存到執行時。