Share via


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 인터페이스를 사용해야 합니다.

적용 대상

추가 정보