ExtendedExecutionSession ExtendedExecutionSession ExtendedExecutionSession ExtendedExecutionSession 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 : sealed class ExtendedExecutionSession : IExtendedExecutionSession, IClosable
struct winrt::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession : IExtendedExecutionSession, IClosable
public sealed class ExtendedExecutionSession : IExtendedExecutionSession, IDisposable
Public NotInheritable Class ExtendedExecutionSession Implements IExtendedExecutionSession, IDisposable
var extendedExecutionSession = new extendedExecutionSession();
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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

Creates an ExtendedExecutionSession object.

Properties

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.

Methods

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.

Events

Revoked Revoked Revoked Revoked Revoked

The Revoked event occurs when the system revokes background execution.

See Also