LeavingBackgroundEventArgs.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.
Gets the deferral object which delays the transition from running in the background to running in the foreground until the app calls Deferral.Complete or the deadline for navigation has passed.
public:
virtual Deferral ^ GetDeferral() = GetDeferral;
Deferral GetDeferral();
public Deferral GetDeferral();
function getDeferral()
Public Function GetDeferral () As Deferral
Returns
The deferral object you will use to indicate that your processing is done.
Implements
Remarks
Deferrals are important if you call asynchronous methods from your event handler. Without the deferral, the app transitions to the next state when the event handler returns— which may happen before your asynchronous method has finished.