CommandLineConfigurationSource 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将命令行参数表示为 .IConfigurationSource
public ref class CommandLineConfigurationSource : Microsoft::Extensions::Configuration::IConfigurationSource
public class CommandLineConfigurationSource : Microsoft.Extensions.Configuration.IConfigurationSource
type CommandLineConfigurationSource = class
interface IConfigurationSource
Public Class CommandLineConfigurationSource
Implements IConfigurationSource
- 继承
-
CommandLineConfigurationSource
- 实现
构造函数
| 名称 | 说明 |
|---|---|
| CommandLineConfigurationSource() |
初始化 的新 CommandLineConfigurationSource实例。 |
属性
| 名称 | 说明 |
|---|---|
| Args |
获取或设置命令行参数。 |
| SwitchMappings |
获取或设置开关映射。 |
方法
| 名称 | 说明 |
|---|---|
| Build(IConfigurationBuilder) |