Windows Dev Center

CollectionChange enumeration

Describes the action that causes a change to a collection.

Syntax


public enum class CollectionChange

Members

The CollectionChange enumeration has these members.

MemberValueDescription
Reset | reset0

The collection is changed.

ItemInserted | itemInserted1

An item is added to the collection.

ItemRemoved | itemRemoved2

An item is removed from the collection.

ItemChanged | itemChanged3

An item is changed in the collection.

Remarks

There is only one notification per type of change to a collection. For example, if an item is inserted, then only a notification for an insertion is sent to a listener that is subscribed to receive change notifications. Use the Index property of the IVectorChangedEventArgs interface or the Key property of the IMapChangedEventArgs<K> interface to determine the location of the change.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.FoundationContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.FoundationContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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

Attributes

[Version(0x06020000)]

See also

IMapChangedEventArgs<K>.CollectionChange property
IVectorChangedEventArgs.CollectionChange property
IObservableMap.MapChanged event
IObservableVector.VectorChanged event

 

 

Show:
© 2015 Microsoft