Aracılığıyla paylaş


LaunchActivatedEventArgs.Arguments Property

Definition

Gets the arguments that are passed to the app during its launch activation.

public:
 property Platform::String ^ Arguments { Platform::String ^ get(); };
winrt::hstring Arguments();
public string Arguments { get; }
var string = launchActivatedEventArgs.arguments;
Public ReadOnly Property Arguments As String

Property Value

String

Platform::String

winrt::hstring

The list of arguments. This value can be used to control the behavior of the app when it is launched through a secondary tile or through a toast.

Implements

Remarks

These arguments provide additional context for this activation. Similar to command-line arguments, this string can be parsed by an app to determine what action it should take in response to this activation. This argument string comes from a property such as SecondaryTile.Arguments or a toast's XML payload, through the launch attribute of the toast element or the arguments attribute of the command element.

Note

An app should always regard the arguments string as untrusted data and must parse and validate the string carefully before taking action based on its contents. Blindly using the arguments string without examining it first can present a security risk.

Applies to