WeakEventManager.ListenerList.Purge Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes all entries from the list where the underlying reference target is a null reference.

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

public bool Purge()

Return Value

Type: System.Boolean

Returns true if any entries were purged; otherwise, false.

.NET Framework
Available since 3.0
Return to top