ParseResult.GetResult Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| Name | Description |
|---|---|
| GetResult(String) |
Vyhledá výsledek pro symbol se zadaným názvem kdekoli ve stromu analýzy. |
| GetResult(Symbol) |
Získá výsledek, pokud existuje, pro zadaný symbol. |
| GetResult(Option) |
Získá výsledek, pokud existuje, pro zadanou možnost. |
| GetResult(Command) |
Získá výsledek, pokud existuje, pro zadaný příkaz. |
| GetResult(Argument) |
Získá výsledek, pokud existuje, pro zadaný argument. |
| GetResult(Directive) |
Získá výsledek, pokud existuje, pro zadanou direktivu. |
GetResult(String)
- Zdroj:
- ParseResult.cs
- Zdroj:
- ParseResult.cs
Vyhledá výsledek pro symbol se zadaným názvem kdekoli ve stromu analýzy.
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
Parametry
- name
- String
Název symbolu, pro který chcete najít výsledek.
Návraty
Výsledek symbolu, pokud byl argument spárován analyzátorem nebo má výchozí hodnotu; v opačném případě . null
Platí pro
GetResult(Symbol)
- Zdroj:
- ParseResult.cs
- Zdroj:
- ParseResult.cs
Získá výsledek, pokud existuje, pro zadaný symbol.
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
Parametry
- symbol
- Symbol
Symbol, pro který chcete najít výsledek.
Návraty
Výsledek zadaného symbolu nebo null pokud nebyl zadán a nebyl nakonfigurován žádný výchozí.
Platí pro
GetResult(Option)
- Zdroj:
- ParseResult.cs
- Zdroj:
- ParseResult.cs
Získá výsledek, pokud existuje, pro zadanou možnost.
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
Parametry
- option
- Option
Možnost, pro kterou chcete najít výsledek.
Návraty
Výsledek pro zadanou možnost nebo null pokud nebyl zadán a nebyl nakonfigurován žádný výchozí.
Platí pro
GetResult(Command)
- Zdroj:
- ParseResult.cs
- Zdroj:
- ParseResult.cs
Získá výsledek, pokud existuje, pro zadaný příkaz.
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
Parametry
- command
- Command
Příkaz, pro který chcete najít výsledek.
Návraty
Výsledek zadaného příkazu nebo null pokud nebyl zadán.
Platí pro
GetResult(Argument)
- Zdroj:
- ParseResult.cs
- Zdroj:
- ParseResult.cs
Získá výsledek, pokud existuje, pro zadaný argument.
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
Parametry
- argument
- Argument
Argument, pro který chcete najít výsledek.
Návraty
Výsledek pro zadaný argument nebo null pokud nebyl zadán a nebyl nakonfigurován žádný výchozí.
Platí pro
GetResult(Directive)
- Zdroj:
- ParseResult.cs
- Zdroj:
- ParseResult.cs
Získá výsledek, pokud existuje, pro zadanou direktivu.
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
Parametry
- directive
- Directive
Direktiva, pro kterou se má najít výsledek.
Návraty
Výsledek pro zadanou direktivu nebo null pokud nebyl zadán.