BackgroundActivatedEventHandler Delegate

Definition

Provides info when a background task activates the app.

public delegate void BackgroundActivatedEventHandler(Platform::Object ^ sender, IBackgroundActivatedEventArgs ^ eventArgs);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.Guid(3987840955, 1889, 18380, 154, 119, 36, 215, 7, 41, 101, 202)]
class BackgroundActivatedEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.Guid(3987840955, 1889, 18380, 154, 119, 36, 215, 7, 41, 101, 202)]
public delegate void BackgroundActivatedEventHandler(object sender, IBackgroundActivatedEventArgs eventArgs);
var backgroundActivatedEventHandlerHandler = function(sender, eventArgs){
/* Your code */
}
Public Delegate Sub BackgroundActivatedEventHandler(sender As Object, eventArgs As IBackgroundActivatedEventArgs)

Parameters

sender
Object

Platform::Object

IInspectable

The object that triggered the event.

eventArgs
IBackgroundActivatedEventArgs

Information about the event.

Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Applies to