Command
Command(String, String)
Action
Aliases
Arguments
Children
Options
Subcommands
TreatUnmatchedTokensAsErrors
Validators
Add(Argument)
Add(Command)
Add(Option)
GetCompletions(CompletionContext)
Parse(String, ParserConfiguration)
Parse(IReadOnlyList<String>, ParserConfiguration)
SetAction(Action<ParseResult>)
SetAction(Func<ParseResult, Int32>)
SetAction(Func<ParseResult, Task<Int32>>)
SetAction(Func<ParseResult, Task>)
SetAction(Func<ParseResult, CancellationToken, Task<Int32>>)
SetAction(Func<ParseResult, CancellationToken, Task>)
net10.0
namespace System.CommandLine
{
public class Command : Symbol, IEnumerable
{
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetAction(Func<ParseResult!, Task!>! action);
}
}
| nuget.org | 0.0 % Reference this API |
|---|---|
| .NET | 8.09.010.0 |
Information specific to net10.0 | |
| Assembly | System.CommandLine , Version=2.0.1.0, PublicKeyToken=31bf3856ad364e35 |
| Referencing | Your project needs a package reference to |
| Package | System.CommandLine (2.0.1) net8.0 |
| Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API