PropertyChangedEventManager.Purge Method (Object, Object, Boolean)

 

Removes listeners that are no longer active from the data for the provided source.

Namespace:   System.ComponentModel
Assembly:  WindowsBase (in WindowsBase.dll)

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

Parameters

source
Type: System.Object

Source object to remove all listeners from.

data
Type: System.Object

The data to purge. This is expected to be a HybridDictionary.

purgeAll
Type: System.Boolean

Set to true to stop listening and to completely remove all data.

Return Value

Type: System.Boolean

true if some entries were removed; otherwise, false.

.NET Framework
Available since 3.0
Return to top
Show: