Share via


BackgroundActivatedEventArgs Class

Definition

Makes all data available from the IBackgroundTask.Run method available to your event handler when your app is activated by a background trigger.

public ref class BackgroundActivatedEventArgs sealed : IBackgroundActivatedEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class BackgroundActivatedEventArgs final : IBackgroundActivatedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class BackgroundActivatedEventArgs : IBackgroundActivatedEventArgs
Public NotInheritable Class BackgroundActivatedEventArgs
Implements IBackgroundActivatedEventArgs
Inheritance
Object Platform::Object IInspectable BackgroundActivatedEventArgs
Attributes
Implements

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

This object is passed to your background activated event handler.

Properties

TaskInstance

Get the data that was available to the IBackgroundTask.Run method that resulted in your app being activated.

Applies to

See also