EventArgs Class
TOC
Collapse the table of content
Expand the table of content

EventArgs Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

EventArgs is the base class for classes containing event data.

System::Object
  System::EventArgs
    More...

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

No code example is currently available or this language may not be supported.

The EventArgs type exposes the following members.

  NameDescription
Public methodEventArgsInitializes a new instance of the EventArgs class.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public fieldStatic memberEmptyRepresents an event with no event data.
Top

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.

NoteNote:

For information on how to compile and run this example code, see Building examples that have static TextBlock controls for Windows Phone 8.

No code example is currently available or this language may not be supported.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

System::Object
  System::EventArgs
    Microsoft.Devices::CameraOperationCompletedEventArgs
    Microsoft.Devices::ContentReadyEventArgs
    Microsoft.Devices.Sensors::AccelerometerReadingEventArgs
    Microsoft.Devices.Sensors::CalibrationEventArgs
    Microsoft.Devices.Sensors::SensorReadingEventArgs<T>
    Microsoft.Phone.BackgroundAudio::PlayStateChangedEventArgs
    Microsoft.Phone.BackgroundTransfer::BackgroundTransferEventArgs
    Microsoft.Phone.Controls::ItemRealizationEventArgs
    Microsoft.Phone.Controls::NotifyEventArgs
    Microsoft.Phone.Controls::ObscuredEventArgs
    Microsoft.Phone.Controls::OrientationChangedEventArgs
    Microsoft.Phone.Controls::PivotItemEventArgs
    Microsoft.Phone.Maps.Controls::MapEventArgs
    Microsoft.Phone.Media::MediaStreamerEndedEventArgs
    Microsoft.Phone.Media::MediaStreamerFailedEventArgs
    Microsoft.Phone.Media::MediaStreamerOpenedEventArgs
    Microsoft.Phone.Net.NetworkInformation::NetworkNotificationEventArgs
    Microsoft.Phone.Notification::HttpNotificationEventArgs
    Microsoft.Phone.Notification::NotificationChannelConnectionEventArgs
    Microsoft.Phone.Notification::NotificationChannelErrorEventArgs
    Microsoft.Phone.Notification::NotificationChannelUriEventArgs
    Microsoft.Phone.Notification::NotificationEventArgs
    Microsoft.Phone.SecureElement::RegisterSecureElementItemEventArgs
    Microsoft.Phone.SecureElement::UserActionEventArgs
    Microsoft.Phone.Shell::ActivatedEventArgs
    Microsoft.Phone.Shell::ApplicationBarStateChangedEventArgs
    Microsoft.Phone.Shell::ClosingEventArgs
    Microsoft.Phone.Shell::DeactivatedEventArgs
    Microsoft.Phone.Shell::HideEventArgs
    Microsoft.Phone.Shell::LaunchingEventArgs
    Microsoft.Phone.Shell::MinimizeEventArgs
    Microsoft.Phone.Shell::RunningInBackgroundEventArgs
    Microsoft.Phone.Shell::ShowEventArgs
    Microsoft.Phone.Shell::VisibleRegionChangedEventArgs
    Microsoft.Phone.Tasks::TaskEventArgs
    Microsoft.Phone.UserData::AppointmentsSearchEventArgs
    Microsoft.Phone.UserData::ContactsSearchEventArgs
    System.Collections.Specialized::NotifyCollectionChangedEventArgs
    System.ComponentModel::AsyncCompletedEventArgs
    System.ComponentModel::CancelEventArgs
    System.ComponentModel::CurrentChangingEventArgs
    System.ComponentModel::DataErrorsChangedEventArgs
    System.ComponentModel::DoWorkEventArgs
    System.ComponentModel::ProgressChangedEventArgs
    System.ComponentModel::PropertyChangedEventArgs
    System.ComponentModel::PropertyChangingEventArgs
    System.Device.Location::GeoPositionChangedEventArgs<T>
    System.Device.Location::GeoPositionStatusChangedEventArgs
    System.Diagnostics.Contracts::ContractFailedEventArgs
    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.Controls.Primitives::ItemsChangedEventArgs
    System.Windows.Controls.Primitives::ManipulationStateChangedEventArgs
    System.Windows.Controls.Primitives::ViewportChangedEventArgs
    System.Windows.Data::FilterEventArgs
    System.Windows.Input::TouchFrameEventArgs
    System.Windows.Interop::NavigationStateChangedEventArgs
    System.Windows.Media.Imaging::DownloadProgressEventArgs
    System.Windows.Media::RenderingEventArgs
    System.Windows.Navigation::FragmentNavigationEventArgs
    System.Windows.Navigation::JournalEntryRemovedEventArgs
    System.Windows.Navigation::NavigationEventArgs
    System.Windows.Navigation::NavigationFailedEventArgs
    System.Windows::RoutedEventArgs
    System.Windows::StartupEventArgs
    System.Windows::VisualStateChangedEventArgs
    System.Xml.Linq::XObjectChangeEventArgs

Show:
© 2017 Microsoft