CommandLineConfigurationExtensions.AddCommandLine CommandLineConfigurationExtensions.AddCommandLine CommandLineConfigurationExtensions.AddCommandLine Method

Definition

Overloads

AddCommandLine(IConfigurationBuilder, Action<CommandLineConfigurationSource>) AddCommandLine(IConfigurationBuilder, Action<CommandLineConfigurationSource>) AddCommandLine(IConfigurationBuilder, Action<CommandLineConfigurationSource>)

Adds an IConfigurationProvider that reads configuration values from the command line.

AddCommandLine(IConfigurationBuilder, String[]) AddCommandLine(IConfigurationBuilder, String[]) AddCommandLine(IConfigurationBuilder, String[])

Adds an IConfigurationProvider that reads configuration values from the command line.

AddCommandLine(IConfigurationBuilder, String[], IDictionary<String,String>) AddCommandLine(IConfigurationBuilder, String[], IDictionary<String,String>) AddCommandLine(IConfigurationBuilder, String[], IDictionary<String,String>)

Adds an IConfigurationProvider that reads configuration values from the command line using the specified switch mappings.

AddCommandLine(IConfigurationBuilder, Action<CommandLineConfigurationSource>) AddCommandLine(IConfigurationBuilder, Action<CommandLineConfigurationSource>) AddCommandLine(IConfigurationBuilder, Action<CommandLineConfigurationSource>)

Adds an IConfigurationProvider that reads configuration values from the command line.

public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddCommandLine (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, Action<Microsoft.Extensions.Configuration.CommandLine.CommandLineConfigurationSource> configureSource);
static member AddCommandLine : Microsoft.Extensions.Configuration.IConfigurationBuilder * Action<Microsoft.Extensions.Configuration.CommandLine.CommandLineConfigurationSource> -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddCommandLine (builder As IConfigurationBuilder, configureSource As Action(Of CommandLineConfigurationSource)) As IConfigurationBuilder
Parameters
configureSource
Action<CommandLineConfigurationSource>

Configures the source.

Returns

AddCommandLine(IConfigurationBuilder, String[]) AddCommandLine(IConfigurationBuilder, String[]) AddCommandLine(IConfigurationBuilder, String[])

Adds an IConfigurationProvider that reads configuration values from the command line.

public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddCommandLine (this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, string[] args);
static member AddCommandLine : Microsoft.Extensions.Configuration.IConfigurationBuilder * string[] -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddCommandLine (configurationBuilder As IConfigurationBuilder, args As String()) As IConfigurationBuilder
Parameters
args
String[]

The command line args.

Returns

AddCommandLine(IConfigurationBuilder, String[], IDictionary<String,String>) AddCommandLine(IConfigurationBuilder, String[], IDictionary<String,String>) AddCommandLine(IConfigurationBuilder, String[], IDictionary<String,String>)

Adds an IConfigurationProvider that reads configuration values from the command line using the specified switch mappings.

public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddCommandLine (this Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder, string[] args, System.Collections.Generic.IDictionary<string,string> switchMappings);
static member AddCommandLine : Microsoft.Extensions.Configuration.IConfigurationBuilder * string[] * System.Collections.Generic.IDictionary<string, string> -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddCommandLine (configurationBuilder As IConfigurationBuilder, args As String(), switchMappings As IDictionary(Of String, String)) As IConfigurationBuilder
Parameters
args
String[]

The command line args.

switchMappings
IDictionary<String,String>

The switch mappings.

Returns

Applies to