CommandLineBuilderExtensions.UseEnvironmentVariableDirective 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
啟用指示詞的使用 [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。