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.ExtendedError ,而 AppActivationResult.AppResourceGroupInfo 將會是 null

屬性

AppResourceGroupInfo

取得啟用之應用程式的診斷資訊,例如記憶體和能源使用量。

ExtendedError

取得錯誤資訊,如果有的話,可能是因為嘗試啟動應用程式而產生。

適用於