Share via


CommandLineConfigurationSource 类

定义

将命令行参数表示为 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)

生成此源的 CommandLineConfigurationProvider

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于