WeakEventManager.ListenerList.Purge Method

Definition

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

public:
 bool Purge();
public bool Purge ();
member this.Purge : unit -> bool
Public Function Purge () As Boolean

Returns

Boolean

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

Applies to