BackgroundTaskRegistration.Completed | completed event

Applies to Windows and Windows Phone

Attaches a completed event handler to the registered background task.

Syntax


function onCompleted(eventArgs) { /* Your code */ }
 
// addEventListener syntax
backgroundTaskRegistration.addEventListener("completed", onCompleted);
backgroundTaskRegistration.removeEventListener("completed", onCompleted);
 
- or -

backgroundTaskRegistration.oncompleted = onCompleted;


Event information

Delegate BackgroundTaskCompletedEventHandler

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

See also

BackgroundTaskRegistration

 

 

Show:
© 2014 Microsoft. All rights reserved.