CanExecuteChangedEventManager.Purge(Object, Object, Boolean) Method

Definition

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

C#
protected override bool Purge(object source, object data, bool purgeAll);

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

Produkt Verzie
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10