FileConfigurationProvider 类

定义

基于文件的 ConfigurationProvider 的基类。

public ref class FileConfigurationProvider abstract : Microsoft::Extensions::Configuration::ConfigurationProvider
public ref class FileConfigurationProvider abstract : Microsoft::Extensions::Configuration::ConfigurationProvider, IDisposable
public abstract class FileConfigurationProvider : Microsoft.Extensions.Configuration.ConfigurationProvider
public abstract class FileConfigurationProvider : Microsoft.Extensions.Configuration.ConfigurationProvider, IDisposable
type FileConfigurationProvider = class
    inherit ConfigurationProvider
type FileConfigurationProvider = class
    inherit ConfigurationProvider
    interface IDisposable
Public MustInherit Class FileConfigurationProvider
Inherits ConfigurationProvider
Public MustInherit Class FileConfigurationProvider
Inherits ConfigurationProvider
Implements IDisposable
继承
FileConfigurationProvider
派生
实现

注解

有关详细信息和示例,请参阅 文件配置提供程序

构造函数

FileConfigurationProvider(FileConfigurationSource)

使用指定的源初始化新实例。

属性

Data

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

(继承自 ConfigurationProvider)
Source

此提供程序的源设置。

方法

Dispose()

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

Dispose(Boolean)

处置提供程序。

Equals(Object)

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

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

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

(继承自 ConfigurationProvider)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetReloadToken()

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

(继承自 ConfigurationProvider)
GetType()

获取当前实例的 Type

(继承自 Object)
Load()

Path 中加载文件的内容。

Load(Stream)

从流中加载此提供程序的数据。

MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
OnReload()

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

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

为给定键设置一个值。

(继承自 ConfigurationProvider)
ToString()

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

ToString()

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

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

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

(继承自 ConfigurationProvider)

适用于