CommandExtensions.Invoke Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
Invoke(Command, String, IConsole) |
Analyse et appelle une commande. |
Invoke(Command, String[], IConsole) |
Analyse et appelle une commande. |
Invoke(Command, String, IConsole)
Analyse et appelle une commande.
public static int Invoke (this System.CommandLine.Command command, string commandLine, System.CommandLine.IConsole? console = default);
static member Invoke : System.CommandLine.Command * string * System.CommandLine.IConsole -> int
<Extension()>
Public Function Invoke (command As Command, commandLine As String, Optional console As IConsole = Nothing) As Integer
Paramètres
- command
- Command
Commande à appeler.
- commandLine
- String
Ligne de commande à analyser.
- console
- IConsole
Console dans laquelle la sortie est écrite pendant l’appel.
Retours
Code de sortie de l’appel.
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 à
Invoke(Command, String[], IConsole)
Analyse et appelle une commande.
public static int Invoke (this System.CommandLine.Command command, string[] args, System.CommandLine.IConsole? console = default);
static member Invoke : System.CommandLine.Command * string[] * System.CommandLine.IConsole -> int
<Extension()>
Public Function Invoke (command As Command, args As String(), Optional console As IConsole = Nothing) As Integer
Paramètres
- command
- Command
Commande à appeler.
- args
- String[]
Arguments à analyser.
- console
- IConsole
Console dans laquelle la sortie est écrite pendant l’appel.
Retours
Code de sortie de l’appel.