StartupEventArgs.Args Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 ReadOnly Property Args As String()

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: