AppDiagnosticInfo.LaunchAsync AppDiagnosticInfo.LaunchAsync AppDiagnosticInfo.LaunchAsync AppDiagnosticInfo.LaunchAsync AppDiagnosticInfo.LaunchAsync Method

Definition

Launches the app associated with the diagnostic info.

public : IAsyncOperation<AppActivationResult> LaunchAsync()
IAsyncOperation<AppActivationResult> LaunchAsync() const;
public IAsyncOperation<AppActivationResult> LaunchAsync()
Public Function LaunchAsync() As IAsyncOperation(Of AppActivationResult)
Windows.System.AppDiagnosticInfo.launchAsync().done( /* Your success and error handlers */ );

Returns

On success, AppActivationResult.AppResourceGroupInfo will correspond to the newly-activated app instance. On failure, AppActivationResult.Exception will reflect the error, and ActivationResult.AppResourceGroupInfo will be null.

Additional features and requirements

Device family
Windows 10, version 1803 (introduced v10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

Remarks

The target app will be launched as if the user had tapped its entry in the app-list or its primary tile in the Start menu. The system will invoke the app’s OnLaunched callback, passing in ActivationKind.Launch and an IActivatedEventArgs of type LaunchActivatedEventArgs.