Share via


OptionExtensions.Parse メソッド

定義

オーバーロード

Parse(Option, String)

オプションを使用してコマンド ライン文字列値を解析します。

Parse(Option, String[])

オプションを使用してコマンド ライン文字列値を解析します。

Parse(Option, String)

オプションを使用してコマンド ライン文字列値を解析します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Parsing::ParseResult ^ Parse(System::CommandLine::Option ^ option, System::String ^ commandLine);
public static System.CommandLine.Parsing.ParseResult Parse (this System.CommandLine.Option option, string commandLine);
static member Parse : System.CommandLine.Option * string -> System.CommandLine.Parsing.ParseResult
<Extension()>
Public Function Parse (option As Option, commandLine As String) As ParseResult

パラメーター

option
Option

コマンド ライン入力を解析するために使用するオプション。

commandLine
String

解析するコマンド ライン文字列。ターミナルに入力できる内容に相当するスペースと引用符を含めることができます。

戻り値

解析操作の結果を記述する解析結果。

注釈

コマンド ライン文字列入力は、コマンド ラインで渡されたかのようにトークンに分割されます。

適用対象

Parse(Option, String[])

オプションを使用してコマンド ライン文字列値を解析します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Parsing::ParseResult ^ Parse(System::CommandLine::Option ^ option, cli::array <System::String ^> ^ args);
public static System.CommandLine.Parsing.ParseResult Parse (this System.CommandLine.Option option, string[] args);
static member Parse : System.CommandLine.Option * string[] -> System.CommandLine.Parsing.ParseResult
<Extension()>
Public Function Parse (option As Option, args As String()) As ParseResult

パラメーター

option
Option

コマンド ライン入力を解析するために使用するオプション。

args
String[]

解析する文字列オプション。

戻り値

解析操作の結果を記述する解析結果。

適用対象