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:
virtual bool Purge(
	Object^ source,
	Object^ data,
	bool purgeAll
) override

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: