Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ExtendedExecutionForegroundSession Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public ref class ExtendedExecutionForegroundSession 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 ExtendedExecutionForegroundSession 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 ExtendedExecutionForegroundSession 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 ExtendedExecutionForegroundSession : 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 ExtendedExecutionForegroundSession : System.IDisposable
function ExtendedExecutionForegroundSession()
Public NotInheritable Class ExtendedExecutionForegroundSession
Implements IDisposable
Inheritance
Object Platform::Object IInspectable ExtendedExecutionForegroundSession
Attributes
Implements

Windows requirements

Requirements Description
Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
extendedExecutionBackgroundAudio extendedExecutionCritical extendedExecutionUnconstrained

Constructors

Name Description
ExtendedExecutionForegroundSession()

Creates an ExtendedExecutionForegroundSession object

Properties

Name Description
Description

Gets or sets a string to display in the shell.

Reason

Gets or sets the reason for the extended execution request.

Methods

Name Description
Close()

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

Dispose()

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

RequestExtensionAsync()

Requests extended execution

Events

Name Description
Revoked

This event occurs when the system revokes extended execution.

Applies to

See also


Feedback

Was this page helpful?