Bagikan melalui


ActivatedEventHandler Delegasikan

Definisi

Mewakili metode yang menangani peristiwa aktivasi aplikasi.

public delegate void ActivatedEventHandler(Platform::Object ^ sender, IActivatedEventArgs ^ eventArgs);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1358030640, 50641, 19307, 154, 219, 138, 17, 117, 107, 226, 156)]
class ActivatedEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1358030640, 50641, 19307, 154, 219, 138, 17, 117, 107, 226, 156)]
public delegate void ActivatedEventHandler(object sender, IActivatedEventArgs eventArgs);
var activatedEventHandlerHandler = function(sender, eventArgs){
/* Your code */
}
Public Delegate Sub ActivatedEventHandler(sender As Object, eventArgs As IActivatedEventArgs)

Parameter

sender
Object

Platform::Object

IInspectable

Pengirimnya.

eventArgs
IActivatedEventArgs

Informasi peristiwa. Jenis data tergantung pada mengapa aplikasi diaktifkan. Untuk daftar kemungkinan jenis data, lihat enumerasi ActivationKind .

Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 (diperkenalkan dalam 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v1.0)

Berlaku untuk

Lihat juga