ActivatedEventHandler 委托

定义

表示处理应用激活事件的方法。

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)

参数

sender
Object

Platform::Object

IInspectable

发送者。

eventArgs
IActivatedEventArgs

事件信息。 数据类型取决于激活应用的原因。 有关可能数据类型的列表,请参阅 ActivationKind 枚举。

属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

适用于

另请参阅