AppDiagnosticInfo.LaunchAsync Methode

Definition

Startet die App, die den Diagnoseinformationen zugeordnet ist.

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)

Gibt zurück

Entspricht bei Erfolg AppActivationResult.AppResourceGroupInfo der neu aktivierten App-instance. Bei Einem Fehler AppActivationResult.Exception wird der Fehler angezeigt, und ActivationResult.AppResourceGroupInfo ist null.

Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10, version 1803 (eingeführt in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v6.0)

Hinweise

Die Ziel-App wird gestartet, als hätte der Benutzer auf den Eintrag in der App-Liste oder die primäre Kachel im Startmenü getippt. Das System ruft den OnLaunched-Rückruf der App auf und übergibt ActivationKind.Launch und ein IActivatedEventArgs vom Typ LaunchActivatedEventArgs.

Gilt für: