CommandResult Class
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.
A result produced when parsing a Command.
public ref class CommandResult : System::CommandLine::Parsing::SymbolResult
public class CommandResult : System.CommandLine.Parsing.SymbolResult
type CommandResult = class
inherit SymbolResult
Public Class CommandResult
Inherits SymbolResult
- Inheritance
Properties
Children |
Child symbol results in the parse tree. (Inherited from SymbolResult) |
Command |
The command to which the result applies. |
ErrorMessage |
An error message for this symbol result. (Inherited from SymbolResult) |
LocalizationResources |
Localization resources used to produce messages for this symbol result. (Inherited from SymbolResult) |
Parent |
The parent symbol result in the parse tree. (Inherited from SymbolResult) |
Symbol |
The symbol to which the result applies. (Inherited from SymbolResult) |
Token |
The token that was parsed to specify the command. |
Tokens |
The list of tokens associated with this symbol result during parsing. (Inherited from SymbolResult) |
Methods
FindResultFor(Argument) |
Finds a result for the specific argument anywhere in the parse tree, including parent and child symbol results. (Inherited from SymbolResult) |
FindResultFor(Command) |
Finds a result for the specific command anywhere in the parse tree, including parent and child symbol results. (Inherited from SymbolResult) |
FindResultFor(Option) |
Finds a result for the specific option anywhere in the parse tree, including parent and child symbol results. (Inherited from SymbolResult) |
GetValueForArgument(Argument) |
Gets the parsed or default value for the specified argument. (Inherited from SymbolResult) |
GetValueForArgument<T>(Argument<T>) |
Gets the parsed or default value for the specified argument. (Inherited from SymbolResult) |
GetValueForOption(Option) |
Gets the parsed or default value for the specified option. (Inherited from SymbolResult) |
GetValueForOption<T>(Option<T>) |
Gets the parsed or default value for the specified option. (Inherited from SymbolResult) |
ToString() |
Returns a string that represents the current object. (Inherited from SymbolResult) |