ExtendedExecutionSession ExtendedExecutionSession ExtendedExecutionSession ExtendedExecutionSession ExtendedExecutionSession Class


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

public : sealed class ExtendedExecutionSession : IClosable
struct winrt::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession : IClosable
public sealed class ExtendedExecutionSession : IDisposable
Public NotInheritable Class ExtendedExecutionSession Implements IDisposable
var extendedExecutionSession = new extendedExecutionSession();

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


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.


ExtendedExecutionSession() ExtendedExecutionSession() ExtendedExecutionSession() ExtendedExecutionSession() ExtendedExecutionSession()

Creates an ExtendedExecutionSession object.


Description Description Description Description Description

This property is not used in the current release.

PercentProgress PercentProgress PercentProgress PercentProgress PercentProgress

This property is not used in the current release.

Reason Reason Reason Reason Reason

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


Close() Close() Close() Close() Close()

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

Dispose() Dispose() Dispose() Dispose() Dispose()

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

RequestExtensionAsync() RequestExtensionAsync() RequestExtensionAsync() RequestExtensionAsync() RequestExtensionAsync()

Requests background execution.


Revoked Revoked Revoked Revoked Revoked

The Revoked event occurs when the system revokes background execution.

See also