次の方法で共有


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 されておらず、既定値が構成されていない場合は 。

適用対象