共用方式為


CollectionChangedEventManager.AddListener 方法

定義

將指定的接聽程式加入至指定之來源的 CollectionChanged 事件。

public:
 static void AddListener(System::Collections::Specialized::INotifyCollectionChanged ^ source, System::Windows::IWeakEventListener ^ listener);
public static void AddListener (System.Collections.Specialized.INotifyCollectionChanged source, System.Windows.IWeakEventListener listener);
static member AddListener : System.Collections.Specialized.INotifyCollectionChanged * System.Windows.IWeakEventListener -> unit
Public Shared Sub AddListener (source As INotifyCollectionChanged, listener As IWeakEventListener)

參數

source
INotifyCollectionChanged

具有事件的物件。

listener
IWeakEventListener

要加入做為接聽程式的物件。

適用於