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实例。

适用于