CommandExtensions.Parse Méthode

Définition

Surcharges

Parse(Command, String)

Analyse une valeur de chaîne de ligne de commande à l’aide de la commande spécifiée.

Parse(Command, String[])

Analyse les chaînes d’un tableau à l’aide de la commande spécifiée.

Parse(Command, String)

Analyse une valeur de chaîne de ligne de commande à l’aide de la commande spécifiée.

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

Paramètres

command
Command

Commande à utiliser pour analyser l’entrée de ligne de commande.

commandLine
String

Chaîne de ligne de commande à analyser, qui peut inclure des espaces et des guillemets équivalents à ce qui peut être entré dans un terminal.

Retours

Résultat de l’analyse décrivant le résultat de l’opération d’analyse.

Remarques

L’entrée de chaîne de ligne de commande sera divisée en jetons comme si elle avait été transmise sur la ligne de commande.

S’applique à

Parse(Command, String[])

Analyse les chaînes d’un tableau à l’aide de la commande spécifiée.

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

Paramètres

command
Command

Commande à utiliser pour analyser l’entrée de ligne de commande.

args
String[]

Arguments de chaîne à analyser.

Retours

Résultat de l’analyse décrivant le résultat de l’opération d’analyse.

S’applique à