Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parse(Command, String) |
Parses a command line string value using the specified command. |
Parse(Command, String[]) |
Parses an array strings using the specified command. |
Parses a command line string value using the specified command.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Parsing::ParseResult ^ Parse(System::CommandLine::Command ^ command, System::String ^ commandLine);
public static System.CommandLine.Parsing.ParseResult Parse(this System.CommandLine.Command command, string commandLine);
static member Parse : System.CommandLine.Command * string -> System.CommandLine.Parsing.ParseResult
<Extension()>
Public Function Parse (command As Command, commandLine As String) As ParseResult
The command to use to parse the command line input.
A command line string to parse, which can include spaces and quotes equivalent to what can be entered into a terminal.
A parse result describing the outcome of the parse operation.
The command line string input will be split into tokens as if it had been passed on the command line.
Parses an array strings using the specified command.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Parsing::ParseResult ^ Parse(System::CommandLine::Command ^ command, ... cli::array <System::String ^> ^ args);
public static System.CommandLine.Parsing.ParseResult Parse(this System.CommandLine.Command command, params string[] args);
static member Parse : System.CommandLine.Command * string[] -> System.CommandLine.Parsing.ParseResult
<Extension()>
Public Function Parse (command As Command, ParamArray args As String()) As ParseResult
The command to use to parse the command line input.
The string arguments to parse.
A parse result describing the outcome of the parse operation.
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in