System.EventArgs Class

public class EventArgs

Base Types

Object
  EventArgs

Assembly

mscorlib

Library

BCL

Summary

EventArgs is the base class for classes containing event data.

Description

[Note: This class contains no event data; it is used by events that do not pass state information to an event handler when an event is raised. If the event handler requires state information, the application must create a subclass of this class to hold the data. For example, the AssemblyLoadEventArgs class is used to hold the data for assembly load events, and contains a Assembly object that describes the loaded assembly.

For details on events, see EventHandler.

]

See Also

System Namespace

Members

EventArgs Constructors

EventArgs Constructor

EventArgs Fields

EventArgs.Empty Field


EventArgs Constructor

public EventArgs();

Summary

Constructs a new instance of the EventArgs class.

See Also

System.EventArgs Class, System Namespace

EventArgs.Empty Field

public static readonly EventArgs Empty;

Summary

Returns a new EventArgs instance for use with events that have no state information.

Description

This field is read-only.

Accessing this field is equivalent to calling the EventArgs constructor.

See Also

System.EventArgs Class, System Namespace