Compartilhar via


CommandLineConfigurationExtensions Class

Definition

Extension methods for registering CommandLineConfigurationProvider with IConfigurationBuilder.

public ref class CommandLineConfigurationExtensions abstract sealed
public static class CommandLineConfigurationExtensions
type CommandLineConfigurationExtensions = class
Public Module CommandLineConfigurationExtensions
Inheritance
CommandLineConfigurationExtensions

Remarks

For more information and examples, see Command-line configuration provider.

Methods

AddCommandLine(IConfigurationBuilder, Action<CommandLineConfigurationSource>)

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

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

Adds a CommandLineConfigurationProviderIConfigurationProvider that reads configuration values from the command line using the specified switch mappings.

AddCommandLine(IConfigurationBuilder, String[])

Adds a CommandLineConfigurationProviderIConfigurationProvider that reads configuration values from the command line.

Applies to