EventHandler<T> delegate

Applies to Windows and Windows Phone

Represents a method that handles general events.

.NET:  This type appears as System.EventHandler<TEventArgs>.

Syntax


var eventHandler = function(sender, args) {
 /* Your code */
}

Attributes

[Version(0x06020000)]

Parameters

sender

Type: Object [JavaScript] | Platform::Object [C++]

The event source.

args

Type: T

The event data.

Remarks

When building Windows Store apps with the Microsoft .NET Framework, this class is hidden and developers should use the System.EventHandler<TEventArgs> class.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Foundation
Windows::Foundation [C++]

Metadata

Windows.winmd

See also

System.EventHandler<TEventArgs>

 

 

Show:
© 2014 Microsoft