共用方式為


ParseResult.FindResultFor 方法

定義

多載

FindResultFor(Argument)

取得指定自變數的結果,如果有的話。

FindResultFor(Command)

取得指定命令的結果,如果有的話。

FindResultFor(Option)

取得指定選項的結果,如果有的話。

FindResultFor(Symbol)

取得指定符號的結果,如果有的話。

FindResultFor(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

參數

argument
Argument

要為其尋找結果的自變數。

傳回

指定自變數的結果, null 如果未提供且未設定預設值,則為 。

適用於

FindResultFor(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

參數

command
Command

要為其尋找結果的命令。

傳回

指定命令的結果,如果未 null 提供,則為 。

適用於

FindResultFor(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

參數

option
Option

要尋找結果的選項。

傳回

指定選項的結果, null 如果未提供,則為 ,且未設定預設值。

適用於

FindResultFor(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

參數

symbol
Symbol

要為其尋找結果的符號。

傳回

指定符號的結果, null 如果未提供,則為 ,且未設定預設值。

適用於