ParseResult.GetResult Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| GetResult(String) |
Ayrıştırma ağacının herhangi bir yerinde belirtilen ada sahip bir simgenin sonucunu bulur. |
| GetResult(Symbol) |
Belirtilen simgenin sonucunu (varsa) alır. |
| GetResult(Option) |
Belirtilen seçenek için varsa sonucu alır. |
| GetResult(Command) |
Belirtilen komut için varsa sonucu alır. |
| GetResult(Argument) |
Varsa, belirtilen bağımsız değişken için sonucu alır. |
| GetResult(Directive) |
Belirtilen yönerge için varsa sonucu alır. |
GetResult(String)
- Kaynak:
- ParseResult.cs
- Kaynak:
- ParseResult.cs
Ayrıştırma ağacının herhangi bir yerinde belirtilen ada sahip bir simgenin sonucunu bulur.
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
Parametreler
- name
- String
Sonuç bulunacak simgenin adı.
Döndürülenler
Bağımsız değişken ayrıştırıcıyla eşleştirildiyse veya varsayılan değere sahipse bir simge sonucu; aksi takdirde , null.
Şunlara uygulanır
GetResult(Symbol)
- Kaynak:
- ParseResult.cs
- Kaynak:
- ParseResult.cs
Belirtilen simgenin sonucunu (varsa) alır.
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
Parametreler
- symbol
- Symbol
Sonuç bulmak için kullanılacak simge.
Döndürülenler
Belirtilen simge için bir sonuç veya null sağlanmadıysa ve hiçbir varsayılan ayar yapılandırılmadıysa.
Şunlara uygulanır
GetResult(Option)
- Kaynak:
- ParseResult.cs
- Kaynak:
- ParseResult.cs
Belirtilen seçenek için varsa sonucu alır.
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
Parametreler
- option
- Option
Sonuç bulma seçeneği.
Döndürülenler
Belirtilen seçenek için bir sonuç veya null sağlanmadıysa ve hiçbir varsayılan ayar yapılandırılmadıysa.
Şunlara uygulanır
GetResult(Command)
- Kaynak:
- ParseResult.cs
- Kaynak:
- ParseResult.cs
Belirtilen komut için varsa sonucu alır.
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
Parametreler
- command
- Command
Sonuç bulmak için kullanılacak komut.
Döndürülenler
Belirtilen komut için veya null sağlanmadıysa bir sonuç.
Şunlara uygulanır
GetResult(Argument)
- Kaynak:
- ParseResult.cs
- Kaynak:
- ParseResult.cs
Varsa, belirtilen bağımsız değişken için sonucu alır.
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
Parametreler
- argument
- Argument
Sonucun bulunması için bağımsız değişken.
Döndürülenler
Belirtilen bağımsız değişken için bir sonuç veya null sağlanmadıysa ve hiçbir varsayılan yapılandırılmadıysa.
Şunlara uygulanır
GetResult(Directive)
- Kaynak:
- ParseResult.cs
- Kaynak:
- ParseResult.cs
Belirtilen yönerge için varsa sonucu alır.
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
Parametreler
- directive
- Directive
Sonucu bulmak için yönergesi.
Döndürülenler
Belirtilen yönerge için veya null sağlanmadıysa bir sonuç.