次の方法で共有


ParseResult.GetResult メソッド

定義

オーバーロード

名前 説明
GetResult(String)

解析ツリー内の任意の場所で、指定した名前を持つシンボルの結果を検索します。

GetResult(Symbol)

指定したシンボルの結果 (ある場合) を取得します。

GetResult(Option)

指定したオプションの結果 (ある場合) を取得します。

GetResult(Command)

指定したコマンドの結果 (ある場合) を取得します。

GetResult(Argument)

指定した引数の結果 (ある場合) を取得します。

GetResult(Directive)

指定したディレクティブの結果 (ある場合) を取得します。

GetResult(String)

ソース:
ParseResult.cs
ソース:
ParseResult.cs

解析ツリー内の任意の場所で、指定した名前を持つシンボルの結果を検索します。

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

パラメーター

name
String

結果を検索するシンボルの名前。

戻り値

引数がパーサーによって一致した場合、または既定値を持っている場合のシンボルの結果。それ以外の場合は null

適用対象

GetResult(Symbol)

ソース:
ParseResult.cs
ソース:
ParseResult.cs

指定したシンボルの結果 (ある場合) を取得します。

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

パラメーター

symbol
Symbol

結果を検索する対象のシンボル。

戻り値

指定したシンボルの結果。指定されておらず、既定値が構成されていない場合は null

適用対象

GetResult(Option)

ソース:
ParseResult.cs
ソース:
ParseResult.cs

指定したオプションの結果 (ある場合) を取得します。

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

パラメーター

option
Option

結果を検索するオプション。

戻り値

指定したオプションの結果。指定されておらず、既定値が構成されていない場合は null

適用対象

GetResult(Command)

ソース:
ParseResult.cs
ソース:
ParseResult.cs

指定したコマンドの結果 (ある場合) を取得します。

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

パラメーター

command
Command

結果を検索するコマンド。

戻り値

指定したコマンドの結果。指定されていない場合は null

適用対象

GetResult(Argument)

ソース:
ParseResult.cs
ソース:
ParseResult.cs

指定した引数の結果 (ある場合) を取得します。

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

パラメーター

argument
Argument

結果を検索する引数。

戻り値

指定した引数の結果。指定されておらず、既定値が構成されていない場合は null

適用対象

GetResult(Directive)

ソース:
ParseResult.cs
ソース:
ParseResult.cs

指定したディレクティブの結果 (ある場合) を取得します。

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

パラメーター

directive
Directive

結果を検索するディレクティブ。

戻り値

指定したディレクティブの結果。指定されていない場合は null

適用対象