ArgumentExtensions.Parse 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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[]
要分析的字符串参数。
返回
描述分析操作结果的解析结果。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈