共用方式為


ParserExtensions.Parse(Parser, String) 方法

定義

剖析命令行字串。

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

參數

parser
Parser
commandLine
String

傳回

備註

命令行字串輸入會分割成令牌,就像已在命令行上傳遞一樣。

適用於