Windows Dev Center

IObservableMap<K, V>.MapChanged event

Occurs when the map changes.

Syntax


event MapChangedEventHandler<K, V> MapChanged

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 (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 (operating system)

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>

 

 

Show:
© 2015 Microsoft