BackgroundTaskCompletedEventHandler delegate

Applies to Windows and Windows Phone

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

Syntax


var backgroundTaskCompletedEventHandler = function(sender, args) {
 /* Your code */
}

Attributes

[Version(0x06020000)]

Parameters

sender

Type: BackgroundTaskRegistration

The background task.

args

Type: BackgroundTaskCompletedEventArgs

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

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Background
Windows::ApplicationModel::Background [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft