IMapChangedEventArgs<K> IMapChangedEventArgs<K> IMapChangedEventArgs<K> IMapChangedEventArgs<K> Interface

Definition

Provides data for the changed event of a map collection.

public interface IMapChangedEventArgs<K>public interface IMapChangedEventArgs<K>Public Interface IMapChangedEventArgs<K>public interface IMapChangedEventArgs<K>
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)

Remarks

IMapChangedEventArgs<K> is specifically used for the MapChanged event of the IObservableMap<K, V> interface, via the MapChangedEventHandler delegate. It's also used for MapChanged.

.NET developers can get instances of this interface via handling the MapChanged event or the MapChanged event from an IObservableMap<K, V> instance. Even though the remainder of the collection support for IObservableMap<K, V> or PropertySet uses language projections that change IMap<K, V> APIs to IDictionary<TKey,TValue> APIs, the MapChanged event, its delegates and its event data aren't changed by the projection and so "Map" (as opposed to "Dictionary") remains in the API names.

Properties

CollectionChange CollectionChange CollectionChange CollectionChange

Gets the type of change that occurred in the map.

public CollectionChange CollectionChange { get; }public CollectionChange CollectionChange { get; }Public ReadOnly Property CollectionChange As CollectionChangepublic CollectionChange CollectionChange { get; }
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)

Remarks

.NET developers can get instances of this interface via handling the MapChanged event or the MapChanged event from an IObservableMap<K, V> instance. Even though the remainder of the collection support for IObservableMap<K, V> or PropertySet uses language projections that change IMap<K, V> APIs to IDictionary<TKey,TValue> APIs, the MapChanged event, its delegates and its event data aren't changed by the projection and so "Map" (as opposed to "Dictionary") remains in the API names.

Key Key Key Key

Gets the key of the item that changed.

public K Key { get; }public K Key { get; }Public ReadOnly Property Key As Kpublic K Key { get; }
Value
K K K K

The key of the item that changed.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)

Remarks

.NET developers can get instances of this interface via handling the MapChanged event or the MapChanged event from an IObservableMap<K, V> instance. Even though the remainder of the collection support for IObservableMap<K, V> or PropertySet uses language projections that change IMap<K, V> APIs to IDictionary<TKey,TValue> APIs, the MapChanged event, its delegates and its event data aren't changed by the projection and so "Map" (as opposed to "Dictionary") remains in the API names.