BackgroundTaskDeferral.Complete | complete method

Applies to Windows and Windows Phone

Informs the system that an asynchronous operation associated with a background task has finished.

Syntax


backgroundTaskDeferral.complete();

Parameters

This method has no parameters.

Remarks

If IBackgroundTaskInstance.GetDeferral is called on a background task, the system will not suspend or terminate the background task host process until BackgroundTaskDeferral.Complete is called on all outstanding background task deferrals to indicate that all of the background task work is finished.

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

BackgroundTaskDeferral

 

 

Show:
© 2014 Microsoft