CollectionChange enumeration

Applies to Windows and Windows Phone

Describes the action that causes a change to a collection.

Syntax


var value = Windows.Foundation.Collections.CollectionChange.reset;

Attributes

[Version(0x06020000)]

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

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

Reference
IMapChangedEventArgs<K>.CollectionChange
IVectorChangedEventArgs.CollectionChange

 

 

Show:
© 2014 Microsoft