Command.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Add(Argument) |
Adds an Argument to the command. |
Add(Command) |
Adds a subcommand to the command. |
Add(Option) |
Adds an Option to the command. |
Add(Argument)
- Source:
- Command.cs
Adds an Argument to the command.
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)
Parameters
- argument
- Argument
The argument to add to the command.
Applies to
Add(Command)
- Source:
- Command.cs
Adds a subcommand to the 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)
Parameters
- command
- Command
The subcommand to add to the command.
Remarks
Commands can be nested to an arbitrary depth.
Applies to
Add(Option)
- Source:
- Command.cs
Adds an Option to the command.
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)
Parameters
- option
- Option
The option to add to the command.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET