INotifyCollectionChanged.CollectionChanged Событие

Определение

Происходит при изменении коллекции.

// 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 

Тип события

Комментарии

При программировании с помощью .NET этот интерфейс скрыт, и разработчики должны использовать интерфейс System.Collections.Specialized.INotifyCollectionChanged .

Применяется к

См. также раздел