Bagikan melalui


BackgroundActivatedEventHandler Delegasikan

Definisi

Menyediakan info saat tugas latar belakang mengaktifkan aplikasi.

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

Objek yang memicu peristiwa.

eventArgs
IBackgroundActivatedEventArgs

Informasi tentang peristiwa tersebut.

Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10, version 1809 (diperkenalkan dalam 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v7.0)

Berlaku untuk