Επεξεργασία

Κοινή χρήση μέσω


SymbolResult.FindResultFor Method

Definition

Overloads

FindResultFor(Argument)

Finds a result for the specific argument anywhere in the parse tree, including parent and child symbol results.

FindResultFor(Command)

Finds a result for the specific command anywhere in the parse tree, including parent and child symbol results.

FindResultFor(Option)

Finds a result for the specific option anywhere in the parse tree, including parent and child symbol results.

FindResultFor(Argument)

Finds a result for the specific argument anywhere in the parse tree, including parent and child symbol results.

public:
 virtual System::CommandLine::Parsing::ArgumentResult ^ FindResultFor(System::CommandLine::Argument ^ argument);
public virtual System.CommandLine.Parsing.ArgumentResult? FindResultFor (System.CommandLine.Argument argument);
abstract member FindResultFor : System.CommandLine.Argument -> System.CommandLine.Parsing.ArgumentResult
override this.FindResultFor : System.CommandLine.Argument -> System.CommandLine.Parsing.ArgumentResult
Public Overridable Function FindResultFor (argument As Argument) As ArgumentResult

Parameters

argument
Argument

The argument for which to find a result.

Returns

An argument result if the argument was matched by the parser or has a default value; otherwise, null.

Applies to

FindResultFor(Command)

Finds a result for the specific command anywhere in the parse tree, including parent and child symbol results.

public:
 virtual System::CommandLine::Parsing::CommandResult ^ FindResultFor(System::CommandLine::Command ^ command);
public virtual System.CommandLine.Parsing.CommandResult? FindResultFor (System.CommandLine.Command command);
abstract member FindResultFor : System.CommandLine.Command -> System.CommandLine.Parsing.CommandResult
override this.FindResultFor : System.CommandLine.Command -> System.CommandLine.Parsing.CommandResult
Public Overridable Function FindResultFor (command As Command) As CommandResult

Parameters

command
Command

The command for which to find a result.

Returns

An command result if the command was matched by the parser; otherwise, null.

Applies to

FindResultFor(Option)

Finds a result for the specific option anywhere in the parse tree, including parent and child symbol results.

public:
 virtual System::CommandLine::Parsing::OptionResult ^ FindResultFor(System::CommandLine::Option ^ option);
public virtual System.CommandLine.Parsing.OptionResult? FindResultFor (System.CommandLine.Option option);
abstract member FindResultFor : System.CommandLine.Option -> System.CommandLine.Parsing.OptionResult
override this.FindResultFor : System.CommandLine.Option -> System.CommandLine.Parsing.OptionResult
Public Overridable Function FindResultFor (option As Option) As OptionResult

Parameters

option
Option

The option for which to find a result.

Returns

An option result if the option was matched by the parser or has a default value; otherwise, null.

Applies to