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, IClosablepublic sealed class ExtendedExecutionForegroundSession : IExtendedExecutionForegroundSession, IDisposablePublic NotInheritable Class ExtendedExecutionForegroundSession Implements IExtendedExecutionForegroundSession, 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)
|
| Capabilities |
extendedExecutionCritical
extendedExecutionUnconstrained
extendedExecutionBackgroundAudio
|
Constructors
ExtendedExecutionForegroundSession() ExtendedExecutionForegroundSession() ExtendedExecutionForegroundSession() ExtendedExecutionForegroundSession()
Creates an ExtendedExecutionForegroundSession object
public : ExtendedExecutionForegroundSession()public ExtendedExecutionForegroundSession()Public Sub New()// You can use this method in JavaScript.
Additional features and requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
| Capabilities |
extendedExecutionCritical
extendedExecutionUnconstrained
extendedExecutionBackgroundAudio
|
Properties
Description Description Description Description
Gets or sets a string to display in the shell.
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
A string to display in the shell.
Additional features and requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
| Capabilities |
extendedExecutionCritical
extendedExecutionUnconstrained
extendedExecutionBackgroundAudio
|
Reason Reason Reason Reason
Gets or sets the reason for the extended execution request.
public : ExtendedExecutionForegroundReason Reason { get; set; }public ExtendedExecutionForegroundReason Reason { get; set; }Public ReadWrite Property Reason As ExtendedExecutionForegroundReason// You can use this property in JavaScript.
- Value
- ExtendedExecutionForegroundReason ExtendedExecutionForegroundReason ExtendedExecutionForegroundReason ExtendedExecutionForegroundReason
The reason for the for the extended execution request.
Additional features and requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
| Capabilities |
extendedExecutionCritical
extendedExecutionUnconstrained
extendedExecutionBackgroundAudio
|
Methods
Close() Close() Close() Close()
Closes the session and removes the application's extended execution capability.
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.
Additional features and requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
| Capabilities |
extendedExecutionCritical
extendedExecutionUnconstrained
extendedExecutionBackgroundAudio
|
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 extended execution
public : IAsyncOperation<ExtendedExecutionForegroundResult> RequestExtensionAsync()public IAsyncOperation<ExtendedExecutionForegroundResult> RequestExtensionAsync()Public Function RequestExtensionAsync() As IAsyncOperation( Of ExtendedExecutionForegroundResult )// You can use this method in JavaScript.
Returns
IAsyncOperation<ExtendedExecutionForegroundResult>
IAsyncOperation<ExtendedExecutionForegroundResult>
IAsyncOperation<ExtendedExecutionForegroundResult>
IAsyncOperation<ExtendedExecutionForegroundResult>
The result of the request.
Additional features and requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
| Capabilities |
extendedExecutionCritical
extendedExecutionUnconstrained
extendedExecutionBackgroundAudio
|
Events
Revoked Revoked Revoked Revoked
This event occurs when the system revokes extended execution.
public : event TypedEventHandler Revoked<object, ExtendedExecutionForegroundRevokedEventArgs>public event TypedEventHandler Revoked<object, ExtendedExecutionForegroundRevokedEventArgs>Public Event Revoked<object, ExtendedExecutionForegroundRevokedEventArgs>// You can use this event in JavaScript.
Additional features and requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
| Capabilities |
extendedExecutionCritical
extendedExecutionUnconstrained
extendedExecutionBackgroundAudio
|