CommandLineConfigurationSource Class

Represents command line arguments as an Microsoft.Extensions.Configuration.IConfigurationSource.

Namespace
Microsoft.Extensions.Configuration.CommandLine
Assemblies
  • Microsoft.Extensions.Configuration.CommandLine

Syntax

public class CommandLineConfigurationSource : IConfigurationSource
class Microsoft.Extensions.Configuration.CommandLine.CommandLineConfigurationSource

Properties

Microsoft.Extensions.Configuration.CommandLine.CommandLineConfigurationSource.Args

Gets or sets the command line args.

Return type:System.Collections.Generic.IEnumerable<System.String>
public IEnumerable<string> Args { get; set; }
Microsoft.Extensions.Configuration.CommandLine.CommandLineConfigurationSource.SwitchMappings

Gets or sets the switch mappings.

Return type:System.Collections.Generic.IDictionary<System.String>
public IDictionary<string, string> SwitchMappings { get; set; }