SuspendingOperation.getDeferral method

This topic has not yet been rated - Rate this topic

Requests that the app suspension operation be delayed.

Syntax


var suspendingDeferral = suspendingOperation.getDeferral();

Parameters

This method has no parameters.

Return value

Type: SuspendingDeferral

The suspension deferral.

Remarks

App suspension is delayed until the app calls the SuspendingDeferral.complete method or the deadline for suspension has passed.

Use the deferral to complete asynchronous operations, such as saving data to a file, before the system suspends your app.

Note that requesting a deferral does not give your app more time to complete suspend, it simply allows you to complete asynchronous operations in the same amount of time that your app would normally get in the suspending event handler.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.WebUI

Metadata

Windows.winmd

See also

Tasks
How to suspend an app
Reference
SuspendingOperation
Samples
App activated, resume, and suspend using the WRL sample

 

 

Build date: 12/4/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.