Windows Dev Center

Windows.Foundation.Collections namespace

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.

Members

The Windows.Foundation.Collections namespace has these types of members:

Classes

ClassDescription
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.

 

Delegates

The Windows.Foundation.Collections namespace has these delegates.

DelegateDescription
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.

 

Enumerations

The Windows.Foundation.Collections namespace has these enumerations.

EnumerationDescription
CollectionChange Describes the action that causes a change to a collection.

 

Interfaces

The Windows.Foundation.Collections namespace defines these interfaces.

InterfaceDescription
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.

 

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Foundation.Collections
Windows::Foundation::Collections [C++]

Metadata

Windows.winmd

See also

Windows.Foundation
Windows.Foundation.Diagnostics
Windows.Foundation.Metadata

 

 

Show:
© 2015 Microsoft