共用方式為


CommandLineBuilderExtensions.UseEnvironmentVariableDirective 方法

定義

啟用指示詞的使用 [env:key=value] ,允許在叫用期間從命令行設定環境變數。

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

參數

builder
CommandLineBuilder

命令行產生器。

傳回

的相同實例 CommandLineBuilder

適用於