Defines standard, specialized, and generic collection objects. This includes the IIterable<T>, IVector<T> and IMap<K,V> generic interfaces, which are used as the pattern for basic collection support throughout the Windows Runtime API.
The Windows.Foundation.Collections namespace has these types of members:
|PropertySet||Represents a property set, which is a set of PropertyValue objects with string keys.|
|StringMap||An associative collection, also known as a map or a dictionary.|
|ValueSet||Implements a map with keys of type String and values of type Object. This class prevents non-serializable types from being put into the map.|
The Windows.Foundation.Collections namespace has these delegates.
|MapChangedEventHandler||Represents the method that handles the changed event of an observable map.|
|VectorChangedEventHandler||Represents the method that handles the changed event of an observable vector.|
The Windows.Foundation.Collections namespace has these enumerations.
|CollectionChange||Describes the action that causes a change to a collection.|
The Windows.Foundation.Collections namespace defines these interfaces.
|IIterable||Exposes an iterator that supports simple iteration over a collection of a specified type.|
|IIterator||Supports simple iteration over a collection.|
|IKeyValuePair||Represents a key-value pair. This is typically used as a constraint type when you need to encapsulate two type parameters into one to satisfy the constraints of another generic interface.|
|IMap||Represents an associative collection, also known as a map or a dictionary.|
|IMapChangedEventArgs||Provides data for the changed event of a map collection.|
|IMapView||Represents an immutable view into a map.|
|IObservableMap||Notifies listeners of dynamic changes to a map, such as when items are added or removed.|
|IObservableVector||Notifies listeners of changes to the vector.|
|IPropertySet||Represents a collection of key-value pairs, correlating several other collection interfaces.|
|IVector||Represents a random-access collection of elements.|
|IVectorChangedEventArgs||Provides data for the changed event of a vector.|
|IVectorView||Represents an immutable view into a vector.|
Many of the interfaces and objects defined in this namespace have different language equivalents depending on the programming language you are using. For more info on using these interfaces from C++ code, see Collections (C++/CX). For more info on using collection types from .NET code, see the Remarks in the specific types defined in this namespace.
Minimum supported client
Minimum supported server
|Windows Server 2012|
Minimum supported phone
|Windows Phone 8|