Edit

Share via


CanExecuteChangedEventManager.Purge(Object, Object, Boolean) Method

Definition

Removes inactive listener entries from the data list for the provided source.

protected:
 override bool Purge(System::Object ^ source, System::Object ^ data, bool purgeAll);
protected override bool Purge (object source, object data, bool purgeAll);
override this.Purge : obj * obj * bool -> bool
Protected Overrides Function Purge (source As Object, data As Object, purgeAll As Boolean) As Boolean

Parameters

source
Object

The source for events being listened to.

data
Object

The data to check. This object is expected to be a WeakEventManager.ListenerList implementation.

purgeAll
Boolean

true to stop listening to source, and completely remove all entries from data.

Returns

true if some entries were actually removed; otherwise, false.

Applies to