IniStreamConfigurationProvider 类

定义

基于 INI 文件的 StreamConfigurationProviderAn INI file based StreamConfigurationProvider.

public ref class IniStreamConfigurationProvider : Microsoft::Extensions::Configuration::StreamConfigurationProvider
public class IniStreamConfigurationProvider : Microsoft.Extensions.Configuration.StreamConfigurationProvider
type IniStreamConfigurationProvider = class
    inherit StreamConfigurationProvider
Public Class IniStreamConfigurationProvider
Inherits StreamConfigurationProvider
继承

构造函数

IniStreamConfigurationProvider(IniStreamConfigurationSource)

构造函数。Constructor.

属性

Data

此提供程序的配置键值对。The configuration key value pairs for this provider.

(继承自 ConfigurationProvider)
Source

此提供程序的源设置。The source settings for this provider.

(继承自 StreamConfigurationProvider)

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

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

返回此提供程序拥有的键列表。Returns the list of keys that this provider has.

(继承自 ConfigurationProvider)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetReloadToken()

返回可用于在重载此提供程序时进行侦听的 IChangeTokenReturns a IChangeToken that can be used to listen when this provider is reloaded.

(继承自 ConfigurationProvider)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
Load()

从流中加载配置数据。Load the configuration data from the stream. 第一次调用后将引发。Will throw after the first call.

(继承自 StreamConfigurationProvider)
Load(Stream)

将 INI 配置键/值从流加载到提供程序。Loads INI configuration key/values from a stream into a provider.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnReload()

触发重载更改令牌并创建一个新令牌。Triggers the reload change token and creates a new one.

(继承自 ConfigurationProvider)
Read(Stream)

将 INI 值流读入键/值字典。Read a stream of INI values into a key/value dictionary.

Set(String, String)

为给定键设置一个值。Sets a value for a given key.

(继承自 ConfigurationProvider)
ToString()

生成一个表示此提供程序名称和相关详细信息的字符串。Generates a string representing this provider name and relevant details.

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

尝试查找给定键的值,如果找到一个值,则返回 true;否则返回 false。Attempts to find a value with the given key, returns true if one is found, false otherwise.

(继承自 ConfigurationProvider)

适用于