共用方式為


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>

參數對應。

適用於