ExtendedExecutionForegroundSession ExtendedExecutionForegroundSession ExtendedExecutionForegroundSession ExtendedExecutionForegroundSession ExtendedExecutionForegroundSession Class

Definition

Supports managing a request for extended execution. This API requires the use of restricted capabilities and cannot be used for Store applications.

public : sealed class ExtendedExecutionForegroundSession : IExtendedExecutionForegroundSession, IClosable
struct winrt::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundSession : IExtendedExecutionForegroundSession, IClosable
public sealed class ExtendedExecutionForegroundSession : IExtendedExecutionForegroundSession, IDisposable
Public NotInheritable Class ExtendedExecutionForegroundSession Implements IExtendedExecutionForegroundSession, IDisposable
var extendedExecutionForegroundSession = new extendedExecutionForegroundSession();
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
extendedExecutionCritical extendedExecutionUnconstrained extendedExecutionBackgroundAudio

Constructors

ExtendedExecutionForegroundSession() ExtendedExecutionForegroundSession() ExtendedExecutionForegroundSession() ExtendedExecutionForegroundSession() ExtendedExecutionForegroundSession()

Creates an ExtendedExecutionForegroundSession object

Properties

Description Description Description Description Description

Gets or sets a string to display in the shell.

Reason Reason Reason Reason Reason

Gets or sets the reason for the extended execution request.

Methods

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

Closes the session and removes the application's extended execution capability.

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

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

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

Requests extended execution

Events

Revoked Revoked Revoked Revoked Revoked

This event occurs when the system revokes extended execution.

See Also