共用方式為


CommandLineBuilderExtensions.UseSuggestDirective(CommandLineBuilder) 方法

定義

啟用 指示詞的使用 [suggest] ,這個指示詞會在命令行輸入短線路的一般命令處理中指定,並寫入最適合大部分殼層用來提供命令行完成的建議新行分隔清單。

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Builder::CommandLineBuilder ^ UseSuggestDirective(System::CommandLine::Builder::CommandLineBuilder ^ builder);
public static System.CommandLine.Builder.CommandLineBuilder UseSuggestDirective (this System.CommandLine.Builder.CommandLineBuilder builder);
static member UseSuggestDirective : System.CommandLine.Builder.CommandLineBuilder -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseSuggestDirective (builder As CommandLineBuilder) As CommandLineBuilder

參數

builder
CommandLineBuilder

命令行產生器。

傳回

的相同實例 CommandLineBuilder

備註

此工具 dotnet-suggest 需要啟用建議指示詞,應用程式才能提供完成。

適用於