共用方式為


ReadOnlyObservableCollection<T>.CollectionChanged 事件

定義

加入或移除項目時發生。

protected:
 virtual event System::Collections::Specialized::NotifyCollectionChangedEventHandler ^ CollectionChanged;
protected virtual event System.Collections.Specialized.NotifyCollectionChangedEventHandler CollectionChanged;
protected virtual event System.Collections.Specialized.NotifyCollectionChangedEventHandler? CollectionChanged;
member this.CollectionChanged : System.Collections.Specialized.NotifyCollectionChangedEventHandler 
Protected Overridable Custom Event CollectionChanged As NotifyCollectionChangedEventHandler 
Protected Overridable Event CollectionChanged As NotifyCollectionChangedEventHandler 

事件類型

實作

備註

如需詳細資訊,請參閱CollectionChanged

適用於