StartupEventArgs.Args 属性

定义

获取从命令提示符或桌面传递到应用程序的命令行参数。

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[]

一个字符串数组,其中包含从命令提示符或桌面传递到应用程序的命令行参数。 如果未传递命令行参数,则字符串数组为零项。

适用于