Share via


EnteredBackgroundEventArgs Class

Definition

Gets the deferral object when an app has entered the background state.

public ref class EnteredBackgroundEventArgs sealed : IEnteredBackgroundEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class EnteredBackgroundEventArgs final : IEnteredBackgroundEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class EnteredBackgroundEventArgs : IEnteredBackgroundEventArgs
Public NotInheritable Class EnteredBackgroundEventArgs
Implements IEnteredBackgroundEventArgs
Inheritance
Object Platform::Object IInspectable EnteredBackgroundEventArgs
Attributes
Implements

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

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()

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.

Applies to

See also