Bewerken

Delen via


ParseResult.FindResultFor Method

Definition

Overloads

FindResultFor(Argument)

Gets the result, if any, for the specified argument.

FindResultFor(Command)

Gets the result, if any, for the specified command.

FindResultFor(Option)

Gets the result, if any, for the specified option.

FindResultFor(Symbol)

Gets the result, if any, for the specified symbol.

FindResultFor(Argument)

Gets the result, if any, for the specified argument.

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

Parameters

argument
Argument

The argument for which to find a result.

Returns

A result for the specified argument, or null if it was not provided and no default was configured.

Applies to

FindResultFor(Command)

Gets the result, if any, for the specified command.

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

Parameters

command
Command

The command for which to find a result.

Returns

A result for the specified command, or null if it was not provided.

Applies to

FindResultFor(Option)

Gets the result, if any, for the specified option.

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

Parameters

option
Option

The option for which to find a result.

Returns

A result for the specified option, or null if it was not provided and no default was configured.

Applies to

FindResultFor(Symbol)

Gets the result, if any, for the specified symbol.

public:
 System::CommandLine::Parsing::SymbolResult ^ FindResultFor(System::CommandLine::Symbol ^ symbol);
public System.CommandLine.Parsing.SymbolResult? FindResultFor (System.CommandLine.Symbol symbol);
member this.FindResultFor : System.CommandLine.Symbol -> System.CommandLine.Parsing.SymbolResult
Public Function FindResultFor (symbol As Symbol) As SymbolResult

Parameters

symbol
Symbol

The symbol for which to find a result.

Returns

A result for the specified symbol, or null if it was not provided and no default was configured.

Applies to