WebUIBackgroundTaskInstanceRuntimeClass.getDeferral method

Applies to Windows and Windows Phone

Informs the system that the background task might continue to perform work after the IBackgroundTask.Run method returns. This method is not applicable to JavaScript background tasks.

Syntax


var backgroundTaskDeferral = webUIBackgroundTaskInstanceRuntimeClass.getDeferral();

Parameters

This method has no parameters.

Return value

Type: BackgroundTaskDeferral

A background task deferral.

Remarks

This method is not applicable for background tasks written in JavaScript. JavaScript background tasks use the Web Workers close method to finish the task after all asynchronous operations have completed.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.WebUI

Metadata

Windows.winmd

See also

WebUIBackgroundTaskInstanceRuntimeClass

 

 

Show:
© 2014 Microsoft