ChainedConfigurationProvider 類別

定義

IConfigurationProvider 的鏈結實作Chained implementation of IConfigurationProvider

public ref class ChainedConfigurationProvider : IDisposable, Microsoft::Extensions::Configuration::IConfigurationProvider
public class ChainedConfigurationProvider : IDisposable, Microsoft.Extensions.Configuration.IConfigurationProvider
type ChainedConfigurationProvider = class
    interface IConfigurationProvider
    interface IDisposable
Public Class ChainedConfigurationProvider
Implements IConfigurationProvider, IDisposable
繼承
ChainedConfigurationProvider
實作

建構函式

ChainedConfigurationProvider(ChainedConfigurationSource)

從來源組態初始化新的執行個體。Initialize a new instance from the source configuration.

方法

Dispose()
Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetChildKeys(IEnumerable<String>, String)

根據此 IConfigurationProvider 資料及所有先前 IConfigurationProvider 所傳回索引鍵集,傳回指定父路徑的直屬子系組態金鑰。Returns the immediate descendant configuration keys for a given parent path based on this IConfigurationProviders data and the set of keys returned by all the preceding IConfigurationProviders.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetReloadToken()

如果此提供者支援變更追蹤,則傳回變更權杖;否則傳回 null。Returns a change token if this provider supports change tracking, null otherwise.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
Load()

從這個 IConfigurationProvider 所代表的來源載入組態值。Loads configuration values from the source represented by this IConfigurationProvider.

MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
Set(String, String)

設定指定索引鍵的組態值。Sets a configuration value for the specified key.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
TryGet(String, String)

嘗試取得指定索引鍵的組態值。Tries to get a configuration value for the specified key.

適用於