Command.Parse メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| Parse(String, ParserConfiguration) |
コマンドを使用して、コマンド ライン文字列値を解析します。 |
| Parse(IReadOnlyList<String>, ParserConfiguration) |
コマンドを使用して配列文字列を解析します。 |
Parse(String, ParserConfiguration)
- ソース:
- Command.cs
- ソース:
- Command.cs
コマンドを使用して、コマンド ライン文字列値を解析します。
public System.CommandLine.ParseResult Parse(string commandLine, System.CommandLine.ParserConfiguration? configuration = default);
member this.Parse : string * System.CommandLine.ParserConfiguration -> System.CommandLine.ParseResult
Public Function Parse (commandLine As String, Optional configuration As ParserConfiguration = Nothing) As ParseResult
パラメーター
- commandLine
- String
解析するコマンド ライン文字列。ターミナルに入力できる内容に相当するスペースと引用符を含めることができます。
- configuration
- ParserConfiguration
パーサーの文法と動作の基になっている構成。
返品
解析操作の結果を記述する解析結果。
注釈
コマンド ライン文字列入力は、コマンド ラインで渡されたかのようにトークンに分割されます。
適用対象
Parse(IReadOnlyList<String>, ParserConfiguration)
- ソース:
- Command.cs
- ソース:
- Command.cs
コマンドを使用して配列文字列を解析します。
public System.CommandLine.ParseResult Parse(System.Collections.Generic.IReadOnlyList<string> args, System.CommandLine.ParserConfiguration? configuration = default);
member this.Parse : System.Collections.Generic.IReadOnlyList<string> * System.CommandLine.ParserConfiguration -> System.CommandLine.ParseResult
Public Function Parse (args As IReadOnlyList(Of String), Optional configuration As ParserConfiguration = Nothing) As ParseResult
パラメーター
- args
- IReadOnlyList<String>
解析する文字列引数。
- configuration
- ParserConfiguration
パーサーの文法と動作の基になっている構成。
返品
解析操作の結果を記述する解析結果。