HelpExtensions.FunctionName(Command, String[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為指令建立一個獨特的 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[]
這是通往這個指揮部的指揮鏈