LeavingBackgroundEventHandler 委托

定义

表示处理离开后台事件的方法。

public delegate void LeavingBackgroundEventHandler(Platform::Object ^ sender, ILeavingBackgroundEventArgs ^ e);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.Guid(11848921, 31388, 19307, 154, 196, 19, 71, 79, 38, 139, 196)]
class LeavingBackgroundEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.Guid(11848921, 31388, 19307, 154, 196, 19, 71, 79, 38, 139, 196)]
public delegate void LeavingBackgroundEventHandler(object sender, ILeavingBackgroundEventArgs e);
var leavingBackgroundEventHandlerHandler = function(sender, e){
/* Your code */
}
Public Delegate Sub LeavingBackgroundEventHandler(sender As Object, e As ILeavingBackgroundEventArgs)

参数

sender
Object

Platform::Object

IInspectable

触发事件的 对象。

e
ILeavingBackgroundEventArgs

有关事件的信息。

属性

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

适用于