BackgroundTaskCompletedEventHandler BackgroundTaskCompletedEventHandler BackgroundTaskCompletedEventHandler BackgroundTaskCompletedEventHandler Delegate

Definition

Represents a method that handles completion events for a background task.

public : delegate void BackgroundTaskCompletedEventHandler(BackgroundTaskRegistration sender, BackgroundTaskCompletedEventArgs args)
public delegate void BackgroundTaskCompletedEventHandler(BackgroundTaskRegistration sender, BackgroundTaskCompletedEventArgs args)
Public Delegate BackgroundTaskCompletedEventHandler(sender As BackgroundTaskRegistration, args As BackgroundTaskCompletedEventArgs)
var backgroundTaskCompletedEventHandler = function(sender, args) {

 /* Your code */

}
Parameters
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Completion events are delivered only if the task completed while the application is in the foreground. If the application is suspended and then terminated, completion status is not delivered. If the application is suspended and then resumed, it is guaranteed to receive the completion notification.