HelpExtensions.FunctionName(Command, String[]) 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.
Créer un nom de fonction shell unique pour une commande : ces noms doivent être
- distinct du nom de la commande « root » (c’est-à-dire que nous ne devons pas générer le nom de la fonction « dotnet » pour le fichier binaire « dotnet »)
- distinct basé sur « path » pour accéder à cette fonction (par conséquent, parentCommandNames)
public static string FunctionName(this System.CommandLine.Command command, string[]? parentCommandNames = default);
static member FunctionName : System.CommandLine.Command * string[] -> string
<Extension()>
Public Function FunctionName (command As Command, Optional parentCommandNames As String() = Nothing) As String
Paramètres
- command
- Command
- parentCommandNames
- String[]
Chaîne de commandes à accéder à cette commande