AppDiagnosticInfo.LaunchAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Launches the app associated with the diagnostic info.
public:
virtual IAsyncOperation<AppActivationResult ^> ^ LaunchAsync() = LaunchAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<AppActivationResult> LaunchAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<AppActivationResult> LaunchAsync();
function launchAsync()
Public Function LaunchAsync () As IAsyncOperation(Of AppActivationResult)
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
.
- Attributes
Windows requirements
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|
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.