Partager via


BackgroundActivatedEventHandler Délégué

Définition

Fournit des informations lorsqu’une tâche en arrière-plan active l’application.

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)

Paramètres

sender
Object

Platform::Object

IInspectable

Objet ayant déclenché l'événement.

eventArgs
IBackgroundActivatedEventArgs

Informations relatives à l'événement.

Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10, version 1809 (introduit dans 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v7.0)

S’applique à