This documentation is archived and is not being maintained.

WeakEventManager.ListenerList Members

Provides a built-in collection list for storing listeners for a WeakEventManager.

The WeakEventManager.ListenerList type exposes the following members.

Public method WeakEventManager.ListenerList Overloaded. Initializes a new instance of the WeakEventManager.ListenerList class.

Public method Add Adds a listener item 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, making deep copies of the values.
Public method EndUse Unlocks the locked state initiated by BeginUse.
Public method Equals 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 a hash function for a particular type. (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 ToString Returns a string that represents the current object. (Inherited from Object.)

Public property Count Gets the number of items contained in the WeakEventManager.ListenerList.
Public property Static member Empty Gets a value that represents an empty list for purposes of comparisons.
Public property IsEmpty Gets a value that declares whether this WeakEventManager.ListenerList is empty.
Public property Item Gets or sets a specific listener item in the WeakEventManager.ListenerList .