Compartir a través de


CommandLineBuilderExtensions.UseEnvironmentVariableDirective Método

Definición

Habilita el uso de la [env:key=value] directiva , lo que permite establecer variables de entorno desde la línea de comandos durante la invocación.

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

Parámetros

builder
CommandLineBuilder

Generador de líneas de comandos.

Devoluciones

La misma instancia de CommandLineBuilder.

Se aplica a