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, 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
Vererbung
Object Platform::Object IInspectable BackgroundActivatedEventArgs
Attribute
Implementiert

Windows-Anforderungen

Gerätefamilie
Windows 10 Anniversary Edition (eingeführt in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v3.0)

Hinweise

Dieses Objekt wird an den aktivierten Ereignishandler im Hintergrund übergeben.

Eigenschaften

TaskInstance

Rufen Sie die Daten ab, die für die IBackgroundTask.Run-Methode verfügbar waren, die dazu geführt haben, dass Ihre App aktiviert wurde.

Gilt für:

Weitere Informationen