Share via


SuspendingOperation.GetDeferral Method

Definition

Requests that the app suspension operation be delayed.

public:
 virtual SuspendingDeferral ^ GetDeferral() = GetDeferral;
SuspendingDeferral GetDeferral();
public SuspendingDeferral GetDeferral();
function getDeferral()
Public Function GetDeferral () As SuspendingDeferral

Returns

The suspension deferral.

Implements

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.

Applies to

See also