LaunchActivatedEventArgs.Arguments property

Applies to Windows and Windows Phone

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

Syntax


Public ReadOnly Property Arguments As String

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

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:
© 2014 Microsoft