IConfigurationProvider 介面

定義

提供應用程式的組態索引鍵/值。

public interface class IConfigurationProvider
public interface IConfigurationProvider
type IConfigurationProvider = interface
Public Interface IConfigurationProvider
衍生

方法

GetChildKeys(IEnumerable<String>, String)

根據此 IConfigurationProvider 資料及所有先前 IConfigurationProvider 所傳回索引鍵集,傳回指定父路徑的直屬子系組態金鑰。

GetReloadToken()

如果此提供者支援變更追蹤,則傳回變更權杖;否則傳回 null。

Load()

從這個 IConfigurationProvider 所代表的來源載入組態值。

Set(String, String)

設定指定索引鍵的組態值。

TryGet(String, String)

嘗試取得指定索引鍵的組態值。

適用於