EventArgs Class
EventArgs is the base class for classes containing event data.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
The EventArgs type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() ![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() ![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() ![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
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 derive a class from this class to hold the data.
For more information about events, see the EventHandler topic.
The following code sample illustrates the use of EventArgs.
In this sample, FireEventArgs is a set of event arguments derived from EventArgs, and passed to the FireEventHandler when an event is raised by calling ActivateFireAlarm.
Note: |
|---|
To run this example, see Building Examples That Use a Demo Method and a TextBlock Control. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
System::EventArgs
System.Collections.Specialized::NotifyCollectionChangedEventArgs
System.ComponentModel::AsyncCompletedEventArgs
System.ComponentModel::CancelEventArgs
System.ComponentModel.Composition.Hosting::ComposablePartCatalogChangeEventArgs
System.ComponentModel.Composition.Hosting::ExportsChangeEventArgs
System.ComponentModel::CurrentChangingEventArgs
System.ComponentModel::DataErrorsChangedEventArgs
System.ComponentModel::DoWorkEventArgs
System.ComponentModel::ProgressChangedEventArgs
System.ComponentModel::PropertyChangedEventArgs
System.ComponentModel::PropertyChangingEventArgs
System.Data.Services.Client::ReadingWritingEntityEventArgs
System.Data.Services.Client::SendingRequestEventArgs
System.Net.Sockets::SocketAsyncEventArgs
System.Net::WriteStreamClosedEventArgs
System::ResolveEventArgs
System.Runtime.InteropServices.Automation::AutomationEventArgs
System.ServiceModel::UnknownMessageReceivedEventArgs
System.Threading.Tasks::UnobservedTaskExceptionEventArgs
System::UnhandledExceptionEventArgs
System.Windows::ApplicationUnhandledExceptionEventArgs
System.Windows.Browser::HtmlEventArgs
System.Windows::CheckAndDownloadUpdateCompletedEventArgs
System.Windows.Controls::DataGridCellEditEndedEventArgs
System.Windows.Controls::DataGridColumnEventArgs
System.Windows.Controls::DataGridPreparingCellForEditEventArgs
System.Windows.Controls::DataGridRowClipboardEventArgs
System.Windows.Controls::DataGridRowDetailsEventArgs
System.Windows.Controls::DataGridRowEditEndedEventArgs
System.Windows.Controls::DataGridRowEventArgs
System.Windows.Controls::DataGridRowGroupHeaderEventArgs
System.Windows.Controls::DatePickerDateValidationErrorEventArgs
System.Windows.Controls::DrawEventArgs
System.Windows.Controls::FocusingInvalidControlEventArgs
System.Windows.Controls::NotifyEventArgs
System.Windows.Controls.Pivot::CxmlCollectionStateChangedEventArgs
System.Windows.Controls.Pivot::PivotViewerCommandsRequestedEventArgs
System.Windows.Controls.Pivot::PivotViewerFilterEventArgs
System.Windows.Controls.Pivot::PivotViewerItemDoubleClickEventArgs
System.Windows.Controls.Pivot::PivotViewerLinkEventArgs
System.Windows.Controls.Pivot::PivotViewerViewUpdatingEventArgs
System.Windows.Controls.Primitives::ItemsChangedEventArgs
System.Windows.Data::FilterEventArgs
System.Windows.Graphics::RenderModeChangedEventArgs
System.Windows.Input::TouchFrameEventArgs
System.Windows.Interop::NavigationStateChangedEventArgs
System.Windows.Media.Imaging::DownloadProgressEventArgs
System.Windows.Media::RenderingEventArgs
System.Windows.Messaging::MessageReceivedEventArgs
System.Windows.Navigation::FragmentNavigationEventArgs
System.Windows.Navigation::NavigationEventArgs
System.Windows.Navigation::NavigationFailedEventArgs
System.Windows.Printing::BeginPrintEventArgs
System.Windows.Printing::EndPrintEventArgs
System.Windows.Printing::PrintPageEventArgs
System.Windows::RoutedEventArgs
System.Windows::StartupEventArgs
System.Windows::VisualStateChangedEventArgs
System.Xml.Linq::XObjectChangeEventArgs

