EnteredBackgroundEventArgs
EnteredBackgroundEventArgs
EnteredBackgroundEventArgs
EnteredBackgroundEventArgs
Class
Definition
Gets the deferral object when an app has entered the background state.
public : sealed class EnteredBackgroundEventArgs : IEnteredBackgroundEventArgspublic sealed class EnteredBackgroundEventArgs : IEnteredBackgroundEventArgsPublic NotInheritable Class EnteredBackgroundEventArgs Implements IEnteredBackgroundEventArgs// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|
Remarks
This object is passed to the app's entered background event handler.
Tip
By the time an app enters the background state, none of its UI is visible.
Methods
GetDeferral() GetDeferral() GetDeferral() GetDeferral()
Gets the deferral object which delays the transition from running in the background state to the suspended state until the app calls Deferral.Complete or the deadline for navigation has passed.
public : Deferral GetDeferral()public Deferral GetDeferral()Public Function GetDeferral() As Deferral// You can use this method in JavaScript.
Returns
The deferral object you will use to indicate when your processing is complete.
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 could happen before your asynchronous method has finished.