Freigeben über


BackgroundActivatedEventHandler Delegat

Definition

Stellt Informationen bereit, wenn eine Hintergrundaufgabe die App aktiviert.

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)

Parameter

sender
Object

Platform::Object

IInspectable

Das Objekt, das das Ereignis ausgelöst hat.

eventArgs
IBackgroundActivatedEventArgs

Informationen zum Ereignis.

Attribute

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)

Gilt für: