INotifyCollectionChanged.CollectionChanged Kejadian
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Terjadi ketika koleksi berubah.
// 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
Jenis Acara
Keterangan
Saat pemrograman dengan .NET, antarmuka ini tersembunyi dan pengembang harus menggunakan antarmuka System.Collections.Specialized.INotifyCollectionChanged .