Edit

Share via


CommandLineBuilderExtensions.UseEnvironmentVariableDirective Method

Definition

Enables the use of the [env:key=value] directive, allowing environment variables to be set from the command line during invocation.

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

Parameters

builder
CommandLineBuilder

A command line builder.

Returns

The same instance of CommandLineBuilder.

Applies to