CommandLineConfigurationProvider 构造函数

定义

初始化一个新实例。

public CommandLineConfigurationProvider (System.Collections.Generic.IEnumerable<string> args, System.Collections.Generic.IDictionary<string,string>? switchMappings = default);
new Microsoft.Extensions.Configuration.CommandLine.CommandLineConfigurationProvider : seq<string> * System.Collections.Generic.IDictionary<string, string> -> Microsoft.Extensions.Configuration.CommandLine.CommandLineConfigurationProvider
Public Sub New (args As IEnumerable(Of String), Optional switchMappings As IDictionary(Of String, String) = Nothing)

参数

args
IEnumerable<String>

命令行参数。

switchMappings
IDictionary<String,String>

交换映射。

适用于