Windows Dev Center

LaunchActivatedEventArgs.Arguments property

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

Syntax


public string Arguments { get; }

Property value

Type: System.String [.NET] | Platform::String [C++]

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.

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.

Caution  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.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.ApplicationModel.Activation
Windows::ApplicationModel::Activation [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.ApplicationModel.Activation
Windows::ApplicationModel::Activation [C++]

Metadata

Windows.winmd

See also

LaunchActivatedEventArgs

 

 

Show:
© 2015 Microsoft