SuspendingEventHandler 委托

定义

表示处理应用挂起事件的方法。

public delegate void SuspendingEventHandler(Platform::Object ^ sender, ISuspendingEventArgs ^ e);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1352417948, 30946, 18563, 171, 200, 137, 96, 220, 222, 27, 92)]
class SuspendingEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1352417948, 30946, 18563, 171, 200, 137, 96, 220, 222, 27, 92)]
public delegate void SuspendingEventHandler(object sender, ISuspendingEventArgs e);
var suspendingEventHandlerHandler = function(sender, e){
/* Your code */
}
Public Delegate Sub SuspendingEventHandler(sender As Object, e As ISuspendingEventArgs)

参数

sender
Object

Platform::Object

IInspectable

发送者。

e
ISuspendingEventArgs

事件数据。

属性

Windows 要求

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

适用于

另请参阅