Command.Add 方法

定義

多載

名稱 Description
Add(Argument)

在指令中加入 a Argument

Add(Command)

在指令中加入 a Command

Add(Option)

在指令中加入了 。Option

Add(Argument)

來源:
Command.cs
來源:
Command.cs
來源:
Command.cs

在指令中加入 a Argument

public:
 void Add(System::CommandLine::Argument ^ argument);
public void Add(System.CommandLine.Argument argument);
member this.Add : System.CommandLine.Argument -> unit
Public Sub Add (argument As Argument)

參數

argument
Argument

新增指令的選項。

適用於

Add(Command)

來源:
Command.cs
來源:
Command.cs
來源:
Command.cs

在指令中加入 a Command

public:
 void Add(System::CommandLine::Command ^ command);
public void Add(System.CommandLine.Command command);
member this.Add : System.CommandLine.Command -> unit
Public Sub Add (command As Command)

參數

command
Command

指令要加到指令上。

備註

指令可以巢狀到任意深度。

適用於

Add(Option)

來源:
Command.cs
來源:
Command.cs
來源:
Command.cs

在指令中加入了 。Option

public:
 void Add(System::CommandLine::Option ^ option);
public void Add(System.CommandLine.Option option);
member this.Add : System.CommandLine.Option -> unit
Public Sub Add (option As Option)

參數

option
Option

新增指令的選項。

適用於