ResourceDictionary.Values 屬性

定義

取得與這個 ResourceDictionary 中包含之索引鍵相關聯的所有值的集合。Gets a collection of all values associated with keys contained in this ResourceDictionary.

public:
 property System::Collections::ICollection ^ Values { System::Collections::ICollection ^ get(); };
public System.Collections.ICollection Values { get; }
member this.Values : System.Collections.ICollection
Public ReadOnly Property Values As ICollection

屬性值

ICollection

所有值的集合。The collection of all values.

實作

備註

這個屬性的存在是因為它是必要的 IDictionary ,但通常不適用於大部分的 ResourceDictionary 情況。This property exists because it is required by IDictionary, but generally is not useful for most ResourceDictionary scenarios.

傳回的值不包含中的值 MergedDictionariesThe returned values do not include values within the MergedDictionaries. 此外,集合也是基底字典中值的快照集。Also the collection is a snapshot of the values in the base dictionary. 如果您之後對此進行變更 ResourceDictionary ,儲存的 Values 將不會反映變更。If you subsequently make changes to this ResourceDictionary, a stored Values will not reflect the changes.

適用於