Język

HelpExtensions.FunctionName(Command, String[]) Metoda

Definicja

Utwórz unikatową nazwę funkcji powłoki dla polecenia — te nazwy powinny być następujące:

  • unikatowe od nazwy polecenia "root" (tj. nie należy generować nazwy funkcji "dotnet" dla binarnego "dotnet")
  • distinct na podstawie ścieżki, aby uzyskać dostęp do tej funkcji (stąd 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

Parametry

command
Command
parentCommandNames
String[]

Łańcuch poleceń, aby przejść do tego polecenia

Zwraca

Dotyczy