KeyPerFileConfigurationProvider 类

定义

将目录的文件用作配置键值对的 ConfigurationProvider

public ref class KeyPerFileConfigurationProvider : Microsoft::Extensions::Configuration::ConfigurationProvider
public ref class KeyPerFileConfigurationProvider : Microsoft::Extensions::Configuration::ConfigurationProvider, IDisposable
public class KeyPerFileConfigurationProvider : Microsoft.Extensions.Configuration.ConfigurationProvider
public class KeyPerFileConfigurationProvider : Microsoft.Extensions.Configuration.ConfigurationProvider, IDisposable
type KeyPerFileConfigurationProvider = class
    inherit ConfigurationProvider
type KeyPerFileConfigurationProvider = class
    inherit ConfigurationProvider
    interface IDisposable
Public Class KeyPerFileConfigurationProvider
Inherits ConfigurationProvider
Public Class KeyPerFileConfigurationProvider
Inherits ConfigurationProvider
Implements IDisposable
继承
KeyPerFileConfigurationProvider
实现

构造函数

KeyPerFileConfigurationProvider(KeyPerFileConfigurationSource)

初始化一个新实例。

属性

Data

此提供程序的配置键值对。

(继承自 ConfigurationProvider)

方法

Dispose()

执行与释放或重置非托管资源关联的应用程序定义的任务。

Equals(Object)

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

(继承自 Object)
GetChildKeys(IEnumerable<String>, String)

返回此提供程序拥有的键列表。

(继承自 ConfigurationProvider)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetReloadToken()

返回可用于在重载此提供程序时进行侦听的 IChangeToken

(继承自 ConfigurationProvider)
GetType()

获取当前实例的 Type

(继承自 Object)
Load()

加载配置值。

MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
OnReload()

触发重载更改令牌并创建一个新令牌。

(继承自 ConfigurationProvider)
Set(String, String)

为给定键设置一个值。

(继承自 ConfigurationProvider)
ToString()

生成一个表示此提供程序名称和相关详细信息的字符串。

ToString()

生成一个表示此提供程序名称和相关详细信息的字符串。

(继承自 ConfigurationProvider)
TryGet(String, String)

尝试查找具有指定键的值。

(继承自 ConfigurationProvider)

适用于