MapChangedEventHandler<K,V> MapChangedEventHandler<K,V> MapChangedEventHandler<K,V> MapChangedEventHandler<K,V> MapChangedEventHandler<K,V> Delegate

Definition

Represents the method that handles the changed event of an observable map.

public : delegate void MapChangedEventHandler<K, V>(IObservableMap<K, V> sender, IMapChangedEventArgs<K> event)
struct MapChangedEventHandler<K, V> : winrt::Windows::Foundation::IUnknown
{
   MapChangedEventHandler(std::nullptr_t = nullptr) noexcept;
   template <typename L> MapChangedEventHandler(L lambda);
   template <typename F> MapChangedEventHandler(F* function);
   template <typename O, typename M> MapChangedEventHandler(O* object, M method);
   void operator()(winrt::Windows::Foundation::Collections::IObservableMap<K, V> const& sender, winrt::Windows::Foundation::Collections::IMapChangedEventArgs<K> const& event) const;
};
public delegate void MapChangedEventHandler<K, V>(IObservableMap<K, V> sender, IMapChangedEventArgs<K> event)
Public Delegate Sub MapChangedEventHandler(Of K, V)(sender As IObservableMap(Of K, V), event As IMapChangedEventArgs(Of K))
var mapChangedEventHandler = function(sender, event) {

 /* Your code */

}

Parameters

sender
IObservableMap<K, V> IObservableMap<K, V> IObservableMap<K, V>

The observable map that changed.

event
IMapChangedEventArgs<K> IMapChangedEventArgs<K> IMapChangedEventArgs<K>

The description of the change that occurred in the map.

Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)

Remarks

This delegate is used by the PropertySet.MapChanged event and the IObservableMap.MapChanged event.

See also