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

要作为侦听器添加的对象。

适用于