共用方式為


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

要移除的接聽程式。

適用於