Share via


BackgroundActivatedEventArgs Klasse

Definition

Stellt dem Ereignishandler alle Daten der IBackgroundTask.Run-Methode zur Verfügung, wenn Ihre App durch einen Hintergrundtrigger aktiviert wird.

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

Windows-Anforderungen

Gerätefamilie
Windows 10, version 1809 (eingeführt in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v7.0)

Hinweise

Das System übergibt dieses Objekt an Ihren hintergrundaktiven Ereignishandler.

Eigenschaften

TaskInstance

Ruft die Hintergrundaufgabe ab, die die App aktiviert hat.

Gilt für: