Skip to main content
IObservableMap<K, V>.MapChanged event

Occurs when the map changes.

Syntax


event MapChangedEventHandler<K, V> MapChanged

Event MapChanged As MapChangedEventHandler(Of K, V)

event MapChangedEventHandler<K, V>^ MapChanged {
   Windows::Foundation::EventRegistrationToken add(MapChangedEventHandler<K, V>^ value);
   void remove(Windows::Foundation::EventRegistrationToken token);
}

Event information

Delegate MapChangedEventHandler<K, V>

Remarks

The event handler receives an IMapChangedEventArgs<K> object that contains data that describes the event.

.NET usage

IObservableMap<K,V> isn't hidden for .NET usage. However, it's more common to use the .NET ObservableCollection<T> type (using a KeyValuePair as T) as a base class, or implement a Dictionary type or interface (generic or nongeneric) and INotifyCollectionChanged separately. If you do use IObservableMap<K,V> for .NET code, the base interfaces (and their members) project as System.Collections.Generic.IDictionary<TKey,TValue> and IEnumerable<T> (with KeyValuePair). MapChanged is the only API that's shared between the projections.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

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

See also

IObservableMap<K, V>
MapChangedEventHandler(K, V)
IMapChangedEventArgs<K>