IConfigurationProvider 介面
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供應用程式的組態索引鍵/值。
public interface class IConfigurationProvider
C#
public interface IConfigurationProvider
type IConfigurationProvider = interface
Public Interface IConfigurationProvider
- 衍生
Get |
根據此 IConfigurationProvider 資料及所有先前 IConfigurationProvider 所傳回索引鍵集,傳回指定父路徑的直屬子系組態金鑰。 |
Get |
如果此提供者支援變更追蹤,則傳回變更權杖;否則傳回 null。 |
Load() |
從這個 IConfigurationProvider 所代表的來源載入組態值。 |
Set(String, String) |
設定指定索引鍵的組態值。 |
Try |
嘗試取得指定索引鍵的組態值。 |
產品 | 版本 |
---|---|
.NET | 6, 7, 8, 9 |
.NET Framework | 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 |