DirectiveResult 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 an Directive.
public ref class DirectiveResult sealed : System::CommandLine::Parsing::SymbolResult
public sealed class DirectiveResult : System.CommandLine.Parsing.SymbolResult
type DirectiveResult = class
inherit SymbolResult
Public NotInheritable Class DirectiveResult
Inherits SymbolResult
- Inheritance
Properties
| Directive |
The directive to which the result applies. |
| Errors |
The parse errors associated with this symbol result. (Inherited from SymbolResult) |
| Parent |
The parent symbol result in the parse tree. (Inherited from SymbolResult) |
| Token |
The token that was parsed to specify the directive. |
| Tokens |
The list of tokens associated with this symbol result during parsing. (Inherited from SymbolResult) |
| Values |
Parsed values of [name:value] directive(s). |
Methods
| AddError(String) |
Adds an error message for this symbol result to it's parse tree. (Inherited from SymbolResult) |
| GetRequiredValue<T>(Argument<T>) |
Gets the parsed or default value for the specified required argument or throws. (Inherited from SymbolResult) |
| GetRequiredValue<T>(Option<T>) |
Gets the parsed or default value for the specified required option or throws. (Inherited from SymbolResult) |
| GetRequiredValue<T>(String) |
Gets the value for a symbol having the specified name anywhere in the parse tree. (Inherited from SymbolResult) |
| GetResult(Argument) |
Finds a result for the specific argument anywhere in the parse tree, including parent and child symbol results. (Inherited from SymbolResult) |
| GetResult(Command) |
Finds a result for the specific command anywhere in the parse tree, including parent and child symbol results. (Inherited from SymbolResult) |
| GetResult(Directive) |
Finds a result for the specific directive anywhere in the parse tree. (Inherited from SymbolResult) |
| GetResult(Option) |
Finds a result for the specific option anywhere in the parse tree, including parent and child symbol results. (Inherited from SymbolResult) |
| GetResult(String) |
Finds a result for a symbol having the specified name anywhere in the parse tree. (Inherited from SymbolResult) |
| GetValue<T>(Argument<T>) |
Gets the parsed or default value for the specified argument. (Inherited from SymbolResult) |
| GetValue<T>(Option<T>) |
Gets the parsed or default value for the specified option. (Inherited from SymbolResult) |
| GetValue<T>(String) |
Gets the value for a symbol having the specified name anywhere in the parse tree. (Inherited from SymbolResult) |