Background​Task​Completed​Event​Handler Background​Task​Completed​Event​Handler Background​Task​Completed​Event​Handler 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)
Parameters
args
BackgroundTaskCompletedEventArgs BackgroundTaskCompletedEventArgs BackgroundTaskCompletedEventArgs

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

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.