共用方式為


VoiceCommandResponse.AppLaunchArgument 屬性

定義

取得或設定字串做為啟動參數,可以與背景 App Service 的回應相關聯。

AppLaunchArgument 可用來在 Cortana中透過深層連結啟動時,指定前景應用程式的狀態或內容。

public:
 property Platform::String ^ AppLaunchArgument { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring AppLaunchArgument();

void AppLaunchArgument(winrt::hstring value);
public string AppLaunchArgument { get; set; }
var string = voiceCommandResponse.appLaunchArgument;
voiceCommandResponse.appLaunchArgument = string;
Public Property AppLaunchArgument As String

屬性值

String

Platform::String

winrt::hstring

用來作為啟動參數的字串。

備註

若要啟用應用程式的深層連結,請在 windows.personalAssistantLaunch 應用程式專案的 Package.appxmanifest 檔案中宣告延伸模組。

應用程式會透過統一資源識別項 (URI) 使用 通訊協定 合約啟動至前景。 應用程式必須覆寫OnActivated事件,並檢查ProtocolActivationKind。 如需詳細資訊,請參閱 處理 URI 啟用

適用於

另請參閱