Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property array<String^>^ Args {
	array<String^>^ get();
}

Property Value

Type: array<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:
© 2017 Microsoft