BackgroundTaskProgressEventHandler Delegate

Definition

Represents a method that handles progress update events for a background task.

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)

Parameters

sender
BackgroundTaskRegistration

The background task.

args
BackgroundTaskProgressEventArgs

Progress information for the task at the time the notification is sent.

Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Progress update events are delivered only while the application is in the foreground.

Applies to