IObservableMap<K, V>.MapChanged IObservableMap<K, V>.MapChanged IObservableMap<K, V>.MapChanged IObservableMap<K, V>.MapChanged IObservableMap<K, V>.MapChanged Event

Definition

Occurs when the map changes.

public : event MapChangedEventHandler<K, V> MapChanged
// Register
event_token MapChanged(MapChangedEventHandler<K, V> const& handler) const;

// Revoke with event_token
void MapChanged(event_token const& cookie) const;

// Revoke with event_revoker
MapChanged_revoker MapChanged(auto_revoke_t, MapChangedEventHandler<K, V> const& handler) const;
public event MapChangedEventHandler<K, V> MapChanged
Public Event MapChanged As MapChangedEventHandler (Of K, V)
function onMapChanged(eventArgs){/* Your code */}


iObservableMap`2.addEventListener("mapchanged", onMapChanged);
iObservableMap`2.removeEventListener("mapchanged", onMapChanged);

Remarks

The event handler receives an IMapChangedEventArgs; object that contains data that describes the event.

.NET usage

IObservableMap; isn't hidden for .NET usage. However, it's more common to use the .NET ObservableCollection 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; for .NET code, the base interfaces (and their members) project as System.Collections.Generic.IDictionary<TKey,TValue> and IEnumerable (with KeyValuePair). MapChanged is the only API that's shared between the projections.

See also