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
Available since 3.0
Return to top
Show: