BackgroundTaskProgressEventHandler 委托

定义

表示处理后台任务的进度更新事件的方法。

public delegate void BackgroundTaskProgressEventHandler(BackgroundTaskRegistration ^ sender, BackgroundTaskProgressEventArgs ^ args);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1189111868, 35464, 19609, 128, 76, 118, 137, 127, 98, 119, 166)]
class BackgroundTaskProgressEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1189111868, 35464, 19609, 128, 76, 118, 137, 127, 98, 119, 166)]
public delegate void BackgroundTaskProgressEventHandler(BackgroundTaskRegistration sender, BackgroundTaskProgressEventArgs args);
var backgroundTaskProgressEventHandlerHandler = function(sender, args){
/* Your code */
}
Public Delegate Sub BackgroundTaskProgressEventHandler(sender As BackgroundTaskRegistration, args As BackgroundTaskProgressEventArgs)

参数

sender
BackgroundTaskRegistration

后台任务。

args
BackgroundTaskProgressEventArgs

发送通知时任务的进度信息。

属性

Windows 要求

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

注解

仅当应用程序处于前台时,才会传递进度更新事件。

适用于