StartupEventArgs.Args Property

Gets command line arguments that were passed to the application from either the command prompt or the desktop.

Namespace:  System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public string[] Args { get; }

Property Value

Type: System.String[]
A string array that contains the command line arguments that were passed to the application from either the command prompt or the desktop. If no command line arguments were passed, the string array as zero items.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft