Handler List Class
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a simple list of delegates. This class cannot be inherited.
public ref class EventHandlerList sealed : IDisposable
public sealed class EventHandlerList : IDisposable
type EventHandlerList = class interface IDisposable
Public NotInheritable Class EventHandlerList Implements IDisposable
For an example of using an EventHandlerList, see How to: Handle Multiple Events Using Event Properties.
This class uses a linear search algorithm to find entries in the list of delegates. A linear search algorithm is inefficient when working with a large number of entries. Therefore, when you have a large list, finding entries is slow.
Initializes a new instance of the EventHandlerList class.
Gets or sets the delegate for the specified object.
Adds a delegate to the list.
Adds a list of delegates to the current list.
Disposes the delegate list.
Determines whether the specified object is equal to the current object.(Inherited from Object)
Serves as the default hash function.(Inherited from Object)
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Removes a delegate from the list.
Returns a string that represents the current object.(Inherited from Object)