System.EventArgs Class

Represents the base class for classes that contain event data, and provides a value to use for events that do not include event data.

See Also: EventArgs Members


public class EventArgs


This class serves as the base class for all classes that represent event data. For example, the AssemblyLoadEventArgs class derives from EventArgs and is used to hold the data for assembly load events. To create a custom event data class, create a class that derives from the EventArgs class and provide the properties to store the necessary data. The name of your custom event data class should end with EventArgs.

To pass an object that does not contain any data, use the EventArgs.Empty field.

For more information about events, see the Handling and Raising Events article.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.


Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,