CanExecuteChangedEventManager.Purge Method (Object, Object, Boolean)

.NET Framework (current version)
 

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

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

protected override bool Purge(
	object source,
	object data,
	bool purgeAll
)

Parameters

source
Type: System.Object

The source for events being listened to.

data
Type: System.Object

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

purgeAll
Type: System.Boolean

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

Return Value

Type: System.Boolean

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

.NET Framework
Available since 4.5
Return to top
Show: