AppActivationResult 类

定义

获取通过 AppDiagnosticInfo.LaunchAsync 激活应用的结果。

public ref class AppActivationResult sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppActivationResult final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppActivationResult
Public NotInheritable Class AppActivationResult
继承
Object Platform::Object IInspectable AppActivationResult
属性

Windows 要求

设备系列
Windows 10, version 1803 (在 10.0.17134.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v6.0 中引入)
应用功能
appDiagnostics

注解

成功后, AppActivationResult.AppResourceGroupInfo 将对应于新激活的应用实例。 失败时,将相应地设置 AppActivationResult.ExtendedErrorAppActivationResult.AppResourceGroupInfo 将为 null

属性

AppResourceGroupInfo

获取已激活应用的诊断信息,例如内存和能量使用情况。

ExtendedError

获取尝试激活应用可能导致的错误信息(如果有)。

适用于