This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines standard, specialized, and generic collection objects. This includes theIIterable<T>,IVector<T> andIMap<K,V> generic interfaces, which are used as the pattern for basic collection support throughout the Windows Runtime API.
| Name | Description |
|---|---|
| PropertySet | Represents a property set, which is a set ofPropertyValue objects with string keys. |
| StringMap | An associative collection, also known as a map or a dictionary. |
| ValueSet | Implements a map with keys of typeString and values of typeObject. Object must be a WinRTPropertyValue or ValueSet. As a PropertyValue, it can be any type exceptPropertyTypeInspectableArray. This limitation exists to ensure that the value can be serialized; passed by value across a process boundary. Note Some members are only available for the specified language. |
| Name | Description |
|---|---|
| IIterable<T> | Exposes an iterator that supports simple iteration over a collection of a specified type.
|
| IIterator<T> | Supports simple iteration over a collection. |
| IKeyValuePair<K,V> | 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. Note In .NET, this interface appears asSystem.Collections.Generic.KeyValuePair<TKey,TValue> (a structure, not an interface). In any case where a Windows Runtime type has implemented IKeyValuePair<K,V>, .NET code can use the APIs ofKeyValuePair instead. |
| IMap<K,V> | Represents an associative collection, also known as a map or a dictionary.
|
| IMapChangedEventArgs<K> | Provides data for the changed event of a map collection. |
| IMapView<K,V> | Represents an immutable view into a map.
|
| IObservableMap<K,V> | Notifies listeners of dynamic changes to a map, such as when items are added or removed. |
| IObservableVector<T> | Notifies listeners of changes to the vector. |
| IPropertySet | Represents a collection of key-value pairs, correlating several other collection interfaces. |
| IVector<T> | Represents a random-access collection of elements.
|
| IVectorChangedEventArgs | Provides data for the changed event of a vector. |
| IVectorView<T> | Represents an immutable view into a vector.
|
| Name | Description |
|---|---|
| CollectionChange | Describes the action that causes a change to a collection. |
| Name | Description |
|---|---|
| MapChangedEventHandler<K,V> | Represents the method that handles the changed event of an observable map. |
| VectorChangedEventHandler<T> | Represents the method that handles the changed event of an observable 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, seeCollections (C++/CX). For more info on using collection types from .NET code, see the Remarks in the specific types defined in this namespace.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?