Udostępnij za pośrednictwem


CommandLineBuilderExtensions.UseEnvironmentVariableDirective Metoda

Definicja

Umożliwia użycie [env:key=value] dyrektywy, co pozwala na ustawianie zmiennych środowiskowych z wiersza polecenia podczas wywołania.

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

Parametry

builder
CommandLineBuilder

Konstruktor wiersza polecenia.

Zwraca

To samo wystąpienie klasy CommandLineBuilder.

Dotyczy