語言

HelpExtensions.FunctionName(Command, String[]) 方法

定義

為指令建立一個獨特的 shell 函式名稱——這些名稱應該是

  • 與「root」指令名稱不同(即不應為二進位「dotnet」產生函式名稱「dotnet」)
  • 根據「路徑」來達成此函式(因此有 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

參數

command
Command
parentCommandNames
String[]

這是通往這個指揮部的指揮鏈

傳回

適用於