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, IClosablepublic sealed class ExtendedExecutionSession : IExtendedExecutionSession, IDisposablePublic NotInheritable Class ExtendedExecutionSession Implements IExtendedExecutionSession, IDisposable// You can use this class in JavaScript.
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()

Creates an ExtendedExecutionSession object.

public : ExtendedExecutionSession()public ExtendedExecutionSession()Public Sub New()// You can use this method in JavaScript.

Properties

Description Description Description Description

This property is not used in the current release.

public : PlatForm::String Description { get; set; }public string Description { get; set; }Public ReadWrite Property Description As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

This property is not used in the current release.

PercentProgress PercentProgress PercentProgress PercentProgress

This property is not used in the current release.

public : unsigned int PercentProgress { get; set; }public uint PercentProgress { get; set; }Public ReadWrite Property PercentProgress As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

This property is not used in the current release.

Reason Reason Reason Reason

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

public : ExtendedExecutionReason Reason { get; set; }public ExtendedExecutionReason Reason { get; set; }Public ReadWrite Property Reason As ExtendedExecutionReason// You can use this property in JavaScript.
Value
ExtendedExecutionReason ExtendedExecutionReason ExtendedExecutionReason ExtendedExecutionReason

The reason for the for the background execution request.

Methods

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

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

public : void Close()This member is not implemented in C#This member is not implemented in VB.Net// You can use this method in JavaScript.

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

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

This member is not implemented in C++void Dispose()Sub Disposevoid Dispose()

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

Requests background execution.

public : IAsyncOperation<ExtendedExecutionResult> RequestExtensionAsync()public IAsyncOperation<ExtendedExecutionResult> RequestExtensionAsync()Public Function RequestExtensionAsync() As IAsyncOperation( Of ExtendedExecutionResult )// You can use this method in JavaScript.
Returns

Events

Revoked Revoked Revoked Revoked

The Revoked event occurs when the system revokes background execution.

public : event TypedEventHandler Revoked<object,  ExtendedExecutionRevokedEventArgs>public event TypedEventHandler Revoked<object,  ExtendedExecutionRevokedEventArgs>Public Event Revoked<object,  ExtendedExecutionRevokedEventArgs>// You can use this event in JavaScript.

Remarks

The sender (object) is **null ** for this event.