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

Provides data for the changed event of a map collection.

Syntax

Declaration

public interface IMapChangedEventArgs<K>public interface IMapChangedEventArgs<K>Public Interface IMapChangedEventArgs<K>

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 summary

Gets the type of change that occurred in the map.

Gets the key of the item that changed.

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 CollectionChange

    Property Value

    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 K

    Property Value

    • K
      K
      K
      K

      The key of the item that changed.

    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.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.FoundationContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.GuidAttribute

Details

Assembly

Windows.Foundation.Collections.dll