Parser 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Parser() |
使用預設 RootCommand,初始化 類別的新實例Parser。 |
Parser(Command) |
使用指定的命令, Parser 初始化 類別的新實例。 |
Parser(CommandLineConfiguration) |
使用指定的組態, Parser 初始化 類別的新實例。 |
Parser()
Parser(Command)
使用指定的命令, Parser 初始化 類別的新實例。
public:
Parser(System::CommandLine::Command ^ command);
public Parser (System.CommandLine.Command command);
new System.CommandLine.Parsing.Parser : System.CommandLine.Command -> System.CommandLine.Parsing.Parser
Public Sub New (command As Command)
參數
- command
- Command
剖析器的根命令。
適用於
Parser(CommandLineConfiguration)
使用指定的組態, Parser 初始化 類別的新實例。
public:
Parser(System::CommandLine::CommandLineConfiguration ^ configuration);
public Parser (System.CommandLine.CommandLineConfiguration configuration);
new System.CommandLine.Parsing.Parser : System.CommandLine.CommandLineConfiguration -> System.CommandLine.Parsing.Parser
Public Sub New (configuration As CommandLineConfiguration)
參數
- configuration
- CommandLineConfiguration
剖析器的文法和行為所依據的組態。