VoiceCommandResponse.AppLaunchArgument 属性

定义

获取或设置一个字符串作为启动参数,该参数可由后台应用服务与响应相关联。

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 事件,并检查协议ActivationKind。 有关详细信息 ,请参阅处理 URI 激活

适用于

另请参阅