Share via


VoiceCommandContentTile.AppLaunchArgument Property

Definition

Gets or sets a string as a launch parameter that can be associated with the response by the background app service.

AppLaunchArgument is used to specify the state or context of the foreground app when launched through a deep link in 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 = voiceCommandContentTile.appLaunchArgument;
voiceCommandContentTile.appLaunchArgument = string;
Public Property AppLaunchArgument As String

Property Value

String

Platform::String

winrt::hstring

The key/value pair.

Remarks

To enable deep linking to an app, declare the windows.personalAssistantLaunch extension in the Package.appxmanifest file of the app project.

An app is launched to the foreground through Uniform Resource Identifier (URI) activation using a Protocol contract. The app must override the OnActivated event and check for an ActivationKind of Protocol. See Handle URI activation for more info.

Applies to

See also