共用方式為


PropertyValueCollection.OnCollectionChanged 方法

定義

加入、移除或重新排序集合中的項目時,引發 CollectionChanged 事件。

protected:
 virtual void OnCollectionChanged(System::Collections::Specialized::NotifyCollectionChangedEventArgs ^ e);
protected virtual void OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e);
abstract member OnCollectionChanged : System.Collections.Specialized.NotifyCollectionChangedEventArgs -> unit
override this.OnCollectionChanged : System.Collections.Specialized.NotifyCollectionChangedEventArgs -> unit
Protected Overridable Sub OnCollectionChanged (e As NotifyCollectionChangedEventArgs)

參數

e
NotifyCollectionChangedEventArgs

包含集合變更之相關資訊的事件引數。

適用於