CollectionChangedEventManager.RemoveListener 方法

定义

将指定的侦听器从指定源的 CollectionChanged 事件中移除。

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

参数

source
INotifyCollectionChanged

带事件的对象。

listener
IWeakEventListener

要移除的侦听器。

适用于