EventHandlerList Class
Provides a simple list of delegates. This class cannot be inherited.
For a list of all members of this type, see EventHandlerList Members.
System.Object
System.ComponentModel.EventHandlerList
[Visual Basic] NotInheritable Public Class EventHandlerList Implements IDisposable [C#] public sealed class EventHandlerList : IDisposable [C++] public __gc __sealed class EventHandlerList : public IDisposable [JScript] public class EventHandlerList implements IDisposable
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
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.
Example
For an example on using an EventHandlerList, see the sample in the "Optimizing Event Implementation" section in Defining an Event.
Requirements
Namespace: System.ComponentModel
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: System (in System.dll)