Compartilhar via


CommandLineBuilderExtensions.UseEnvironmentVariableDirective Método

Definição

Habilita o uso da [env:key=value] diretiva , permitindo que variáveis de ambiente sejam definidas da linha de comando durante a invocação.

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

Um construtor de linha de comando.

Retornos

A mesma instância de CommandLineBuilder.

Aplica-se a