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 引進)

備註

只有在應用程式位於前景時,才會傳遞進度更新事件。

適用於