Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
WeakEventManager.ListenerList Methods

WeakEventManager.ListenerList Methods

The WeakEventManager.ListenerList type exposes the following members.

  Name Description
Public method Add Adds a IWeakEventListener object to the WeakEventManager.ListenerList.
Public method AddHandler Adds an event handler to the WeakEventManager.ListenerList.
Public method BeginUse Declares the list to be in use. This prevents direct changes to the list during iterations of the list items.
Public method Clone Creates a modifiable clone of this WeakEventManager.ListenerList.
Protected method CopyTo Copies the current WeakEventManager.ListenerList to the specified WeakEventManager.ListenerList
Public method DeliverEvent Delivers the event being managed to each listener in the WeakEventManager.ListenerList.
Public method EndUse Unlocks the locked state initiated by BeginUse.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member PrepareForWriting Checks to see whether the provided list is in use, and if so, sets the list reference parameter to a copy of that list rather than the original.
Public method Purge Removes all entries from the list where the underlying reference target is a null reference.
Public method Remove Removes the first occurrence of a listener item from the WeakEventManager.ListenerList.
Public method RemoveHandler Removes an event handler from the WeakEventManager.ListenerList.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
© 2015 Microsoft