Dela via


ActivatedEventHandler Delegate

Definition

Represents a method that handles the app activation event.

public delegate void ActivatedEventHandler(Platform::Object ^ sender, IActivatedEventArgs ^ eventArgs);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1358030640, 50641, 19307, 154, 219, 138, 17, 117, 107, 226, 156)]
class ActivatedEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1358030640, 50641, 19307, 154, 219, 138, 17, 117, 107, 226, 156)]
public delegate void ActivatedEventHandler(object sender, IActivatedEventArgs eventArgs);
var activatedEventHandlerHandler = function(sender, eventArgs){
/* Your code */
}
Public Delegate Sub ActivatedEventHandler(sender As Object, eventArgs As IActivatedEventArgs)

Parameters

sender
Object

Platform::Object

IInspectable

The sender.

eventArgs
IActivatedEventArgs

The event information. The data type depends on why the app was activated. For a list of possible data types, see the ActivationKind enumeration.

Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Applies to

See also