SuspendingOperation.GetDeferral Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.