INotifyCollectionChanged.CollectionChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the collection changes.
// Register
event_token CollectionChanged(NotifyCollectionChangedEventHandler const& handler) const;
// Revoke with event_token
void CollectionChanged(event_token const* cookie) const;
// Revoke with event_revoker
INotifyCollectionChanged::CollectionChanged_revoker CollectionChanged(auto_revoke_t, NotifyCollectionChangedEventHandler const& handler) const;
event NotifyCollectionChangedEventHandler CollectionChanged;
function onCollectionChanged(eventArgs) { /* Your code */ }
iNotifyCollectionChanged.addEventListener("collectionchanged", onCollectionChanged);
iNotifyCollectionChanged.removeEventListener("collectionchanged", onCollectionChanged);
- or -
iNotifyCollectionChanged.oncollectionchanged = onCollectionChanged;
Event CollectionChanged As NotifyCollectionChangedEventHandler
Event Type
Remarks
When programming with .NET, this interface is hidden and developers should use the System.Collections.Specialized.INotifyCollectionChanged interface.