ExtendedExecutionForegroundSession 类

定义

支持管理扩展执行请求。 此 API 需要使用受限功能,不能用于应用商店应用程序。

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
继承
Object Platform::Object IInspectable ExtendedExecutionForegroundSession
属性
实现

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
应用功能
extendedExecutionBackgroundAudio extendedExecutionCritical extendedExecutionUnconstrained

构造函数

ExtendedExecutionForegroundSession()

创建 ExtendedExecutionForegroundSession 对象

属性

Description

获取或设置要显示在 shell 中的字符串。

Reason

获取或设置扩展执行请求的原因。

方法

Close()

关闭会话并删除应用程序的扩展执行功能。

Dispose()

执行与释放或重置非托管资源关联的应用程序定义的任务。

RequestExtensionAsync()

请求扩展执行

事件

Revoked

当系统撤消扩展执行时,会发生此事件。

适用于

另请参阅