ParseResult.GetResult Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
| Nazwa | Opis |
|---|---|
| GetResult(String) |
Znajduje wynik dla symbolu o określonej nazwie w dowolnym miejscu w drzewie analizy. |
| GetResult(Symbol) |
Pobiera wynik, jeśli istnieje, dla określonego symbolu. |
| GetResult(Option) |
Pobiera wynik, jeśli istnieje, dla określonej opcji. |
| GetResult(Command) |
Pobiera wynik, jeśli istnieje, dla określonego polecenia. |
| GetResult(Argument) |
Pobiera wynik, jeśli istnieje, dla określonego argumentu. |
| GetResult(Directive) |
Pobiera wynik, jeśli istnieje, dla określonej dyrektywy. |
GetResult(String)
- Źródło:
- ParseResult.cs
- Źródło:
- ParseResult.cs
Znajduje wynik dla symbolu o określonej nazwie w dowolnym miejscu w drzewie analizy.
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
Nazwa symbolu, dla którego ma znajdować wynik.
Zwraca
Wynik symbolu, jeśli argument został dopasowany przez analizator lub ma wartość domyślną; w przeciwnym razie, null.
Dotyczy
GetResult(Symbol)
- Źródło:
- ParseResult.cs
- Źródło:
- ParseResult.cs
Pobiera wynik, jeśli istnieje, dla określonego symbolu.
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, dla którego można znaleźć wynik.
Zwraca
Wynik dla określonego symbolu lub null jeśli nie został podany i nie skonfigurowano wartości domyślnej.
Dotyczy
GetResult(Option)
- Źródło:
- ParseResult.cs
- Źródło:
- ParseResult.cs
Pobiera wynik, jeśli istnieje, dla określonej opcji.
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
Opcja, dla której można znaleźć wynik.
Zwraca
Wynik dla określonej opcji lub null jeśli nie został podany i nie skonfigurowano wartości domyślnej.
Dotyczy
GetResult(Command)
- Źródło:
- ParseResult.cs
- Źródło:
- ParseResult.cs
Pobiera wynik, jeśli istnieje, dla określonego polecenia.
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
Polecenie, dla którego można znaleźć wynik.
Zwraca
Wynik dla określonego polecenia lub null jeśli nie został podany.
Dotyczy
GetResult(Argument)
- Źródło:
- ParseResult.cs
- Źródło:
- ParseResult.cs
Pobiera wynik, jeśli istnieje, dla określonego argumentu.
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, dla którego należy znaleźć wynik.
Zwraca
Wynik dla określonego argumentu lub null jeśli nie został podany i nie skonfigurowano wartości domyślnej.
Dotyczy
GetResult(Directive)
- Źródło:
- ParseResult.cs
- Źródło:
- ParseResult.cs
Pobiera wynik, jeśli istnieje, dla określonej dyrektywy.
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
Dyrektywa, dla której należy znaleźć wynik.
Zwraca
Wynik dla określonej dyrektywy lub null jeśli nie został podany.