Share via


HolographicApplicationPreview.IsHolographicActivation 方法

定義

取得指定的應用程式啟用是否以全像攝影殼層為目標。

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

參數

activatedEventArgs
IActivatedEventArgs

要檢查的應用程式啟用。

傳回

Boolean

bool

啟用是否以全像攝影殼層為目標。

備註

在桌上型電腦上,如果使用者有Mixed Reality頭戴式裝置,則可以從桌面 \[開始\] 功能表或全像攝影 \[開始\] 功能表啟動應用程式。 使用者也可以透過桌面或全像攝影殼層中的通訊協定啟用來啟用應用程式,例如按一下位於該殼層中另一個應用程式中的連結。 這個方法可讓應用程式考慮特定應用程式啟用是否以全像攝影殼層為目標,這可能會影響應用程式選擇如何初始化其檢視。

在 HoloLens 上,這會針對所有啟用傳回 true。

適用於