ParseResult.GetResult Método

Definição

Sobrecargas

Name Description
GetResult(String)

Encontra um resultado para um símbolo com o nome especificado em qualquer parte da árvore de análise sintática.

GetResult(Symbol)

Obtém o resultado, se existir, para o símbolo especificado.

GetResult(Option)

Obtém o resultado, se houver, para a opção especificada.

GetResult(Command)

Obtém o resultado, se houver, para o comando especificado.

GetResult(Argument)

Obtém o resultado, se houver, para o argumento especificado.

GetResult(Directive)

Obtém o resultado, se houver, para a diretiva especificada.

GetResult(String)

Origem:
ParseResult.cs
Origem:
ParseResult.cs

Encontra um resultado para um símbolo com o nome especificado em qualquer parte da árvore de análise sintática.

public:
 System::CommandLine::Parsing::SymbolResult ^ GetResult(System::String ^ name);
public System.CommandLine.Parsing.SymbolResult? GetResult(string name);
member this.GetResult : string -> System.CommandLine.Parsing.SymbolResult
Public Function GetResult (name As String) As SymbolResult

Parâmetros

name
String

O nome do símbolo para o qual se deve encontrar um resultado.

Devoluções

Um resultado de símbolo se o argumento foi correspondido pelo analisador ou tiver um valor padrão; caso contrário, null.

Aplica-se a

GetResult(Symbol)

Origem:
ParseResult.cs
Origem:
ParseResult.cs

Obtém o resultado, se existir, para o símbolo especificado.

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

Parâmetros

symbol
Symbol

O símbolo para o qual encontrar um resultado.

Devoluções

Um resultado para o símbolo especificado, ou null se não foi fornecido e não foi configurado um padrão.

Aplica-se a

GetResult(Option)

Origem:
ParseResult.cs
Origem:
ParseResult.cs

Obtém o resultado, se houver, para a opção especificada.

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

Parâmetros

option
Option

A opção para encontrar um resultado.

Devoluções

Um resultado para a opção especificada, ou null se não foi fornecido e não foi configurado o padrão.

Aplica-se a

GetResult(Command)

Origem:
ParseResult.cs
Origem:
ParseResult.cs

Obtém o resultado, se houver, para o comando especificado.

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

Parâmetros

command
Command

O comando para o qual encontrar um resultado.

Devoluções

Um resultado para o comando especificado, ou null se não foi fornecido.

Aplica-se a

GetResult(Argument)

Origem:
ParseResult.cs
Origem:
ParseResult.cs

Obtém o resultado, se houver, para o argumento especificado.

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

Parâmetros

argument
Argument

O argumento para encontrar um resultado.

Devoluções

Um resultado para o argumento especificado, ou null se não foi fornecido e não foi configurado o padrão.

Aplica-se a

GetResult(Directive)

Origem:
ParseResult.cs
Origem:
ParseResult.cs

Obtém o resultado, se houver, para a diretiva especificada.

public:
 System::CommandLine::Parsing::DirectiveResult ^ GetResult(System::CommandLine::Directive ^ directive);
public System.CommandLine.Parsing.DirectiveResult? GetResult(System.CommandLine.Directive directive);
member this.GetResult : System.CommandLine.Directive -> System.CommandLine.Parsing.DirectiveResult
Public Function GetResult (directive As Directive) As DirectiveResult

Parâmetros

directive
Directive

A diretiva para a qual encontrar um resultado.

Devoluções

Um resultado para a diretiva especificada, ou null se não foi fornecida.

Aplica-se a