Share via


ExtendedExecutionSession Class

Definition

Supports managing a request for background execution. For more information on how to use Extended Execution, see Run while minimized with Extended Execution

public ref class ExtendedExecutionSession sealed : IClosable
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ExtendedExecutionSession final : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class ExtendedExecutionSession final : IClosable
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ExtendedExecutionSession : System.IDisposable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class ExtendedExecutionSession : System.IDisposable
function ExtendedExecutionSession()
Public NotInheritable Class ExtendedExecutionSession
Implements IDisposable
Inheritance
Object Platform::Object IInspectable ExtendedExecutionSession
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

The amount of time available to perform background execution may be several minutes, but you must be prepared to handle the session being revoked at any time.

Constructors

ExtendedExecutionSession()

Creates an ExtendedExecutionSession object.

Properties

Description

This property is not used in the current release.

PercentProgress

This property is not used in the current release.

Reason

Gets or sets the reason for the for the background execution request.

Methods

Close()

Closes the session and removes the application's capability to run in the background.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

RequestExtensionAsync()

Requests background execution.

Events

Revoked

The Revoked event occurs when the system revokes background execution.

Applies to

See also