共用方式為


Parser 建構函式

定義

多載

Parser()

使用預設 RootCommand,初始化 類別的新實例Parser

Parser(Command)

使用指定的命令, Parser 初始化 類別的新實例。

Parser(CommandLineConfiguration)

使用指定的組態, Parser 初始化 類別的新實例。

Parser()

使用預設 RootCommand,初始化 類別的新實例Parser

public:
 Parser();
public Parser ();
Public Sub New ()

適用於

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

剖析器的文法和行為所依據的組態。

例外狀況

適用於