Windows.Foundation.Collections Namespace
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 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.
Classes
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. Object must be a WinRT PropertyValue or ValueSet. As a PropertyValue, it can be any type except PropertyType InspectableArray. 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. |
Interfaces
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 as System.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 of KeyValuePair 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.
|
Enums
CollectionChange |
Describes the action that causes a change to a collection. |
Delegates
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. |
Remarks
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.