Share via


HolographicApplicationPreview.IsHolographicActivation Methode

Definition

Ruft ab, ob eine bestimmte App-Aktivierung auf die holografische Shell ausgerichtet ist.

public:
 static bool IsHolographicActivation(IActivatedEventArgs ^ activatedEventArgs);
 static bool IsHolographicActivation(IActivatedEventArgs const& activatedEventArgs);
public static bool IsHolographicActivation(IActivatedEventArgs activatedEventArgs);
function isHolographicActivation(activatedEventArgs)
Public Shared Function IsHolographicActivation (activatedEventArgs As IActivatedEventArgs) As Boolean

Parameter

activatedEventArgs
IActivatedEventArgs

Die zu überprüfende App-Aktivierung.

Gibt zurück

Boolean

bool

Gibt an, ob die Aktivierung auf die holografische Shell ausgerichtet ist.

Hinweise

Auf einem Desktop-PC können Benutzer eine App entweder über das Desktop-Startmenü oder das holografische Startmenü starten, wenn sie über ein Mixed Reality Headset verfügen. Benutzer können Anwendungen auch über Protokollaktivierungen in der Desktop- oder holografischen Shell aktivieren, z. B. durch Klicken auf einen Link in einer anderen App, die sich derzeit in dieser Shell befindet. Mit dieser Methode kann eine App darüber entscheiden, ob eine bestimmte App-Aktivierung auf die holografische Shell abzielt oder nicht, was sich darauf auswirken kann, wie die App ihre Ansichten initiiert.

Bei HoloLens wird für alle Aktivierungen true zurückgegeben.

Gilt für: