StartupEventArgs.Args StartupEventArgs.Args StartupEventArgs.Args StartupEventArgs.Args Property

定义

获取从命令提示符或桌面传递到应用程序的命令行参数。Gets command line arguments that were passed to the application from either the command prompt or the desktop.

public:
 property cli::array <System::String ^> ^ Args { cli::array <System::String ^> ^ get(); };
public string[] Args { get; }
member this.Args : string[]
Public ReadOnly Property Args As String()

属性值

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.

适用于