Langue

HelpExtensions.FunctionName(Command, String[]) Méthode

Définition

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

Retours

S’applique à