WeakEventManager.ListenerList.Purge Method ()

 

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
Show: