ArgumentExtensions.Parse 方法

定义

重载

Parse(Argument, String)

使用参数分析命令行字符串值。

Parse(Argument, String[])

使用参数分析命令行字符串值。

Parse(Argument, String)

使用参数分析命令行字符串值。

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Parsing::ParseResult ^ Parse(System::CommandLine::Argument ^ argument, System::String ^ commandLine);
public static System.CommandLine.Parsing.ParseResult Parse (this System.CommandLine.Argument argument, string commandLine);
static member Parse : System.CommandLine.Argument * string -> System.CommandLine.Parsing.ParseResult
<Extension()>
Public Function Parse (argument As Argument, commandLine As String) As ParseResult

参数

argument
Argument

用于分析命令行输入的参数。

commandLine
String

要分析的命令行字符串,可以包含与可输入终端内容等效的空格和引号。

返回

描述分析操作结果的解析结果。

注解

命令行字符串输入将拆分为标记,就像在命令行上传递一样。

适用于

Parse(Argument, String[])

使用参数分析命令行字符串值。

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Parsing::ParseResult ^ Parse(System::CommandLine::Argument ^ argument, cli::array <System::String ^> ^ args);
public static System.CommandLine.Parsing.ParseResult Parse (this System.CommandLine.Argument argument, string[] args);
static member Parse : System.CommandLine.Argument * string[] -> System.CommandLine.Parsing.ParseResult
<Extension()>
Public Function Parse (argument As Argument, args As String()) As ParseResult

参数

argument
Argument

用于分析命令行输入的参数。

args
String[]

要分析的字符串参数。

返回

描述分析操作结果的解析结果。

适用于