System.Collections.ObjectModel 命名空間

System.Collections.ObjectModel 命名空間包含可做為重複使用程式庫物件模型中集合之類別。 The System.Collections.ObjectModel namespace contains classes that can be used as collections in the object model of a reusable library. 當屬性或方法傳回集合時,請使用這些類別。 Use these classes when properties or methods return collections.

類別

Collection<T>

提供泛型集合的基底類別。Provides the base class for a generic collection.

KeyedCollection<TKey,TItem>

為內嵌在值之索引鍵的集合,提供抽象基底類別。Provides the abstract base class for a collection whose keys are embedded in the values.

ObservableCollection<T>

表示會在加入或移除項目時,或重新整理整份清單時,提供告知的動態資料集合。Represents a dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed.

ReadOnlyCollection<T>

提供泛型唯讀集合的基底類別。Provides the base class for a generic read-only collection.

ReadOnlyDictionary<TKey,TValue>.KeyCollection

表示 ReadOnlyDictionary<TKey,TValue> 物件之索引鍵的唯讀集合。Represents a read-only collection of the keys of a ReadOnlyDictionary<TKey,TValue> object.

ReadOnlyDictionary<TKey,TValue>.ValueCollection

表示 ReadOnlyDictionary<TKey,TValue> 物件值的唯讀集合。Represents a read-only collection of the values of a ReadOnlyDictionary<TKey,TValue> object.

ReadOnlyDictionary<TKey,TValue>

表示索引鍵/值組的唯讀泛型集合。Represents a read-only, generic collection of key/value pairs.

ReadOnlyObservableCollection<T>

表示唯讀 ObservableCollection<T>Represents a read-only ObservableCollection<T>.