語言

KeyPerFileConfigurationProvider 類別

定義

ConfigurationProvider A 是使用目錄檔案作為設定鍵/值的。

public ref class KeyPerFileConfigurationProvider : Microsoft::Extensions::Configuration::ConfigurationProvider, IDisposable
public class KeyPerFileConfigurationProvider : Microsoft.Extensions.Configuration.ConfigurationProvider, IDisposable
type KeyPerFileConfigurationProvider = class
    inherit ConfigurationProvider
    interface IDisposable
Public Class KeyPerFileConfigurationProvider
Inherits ConfigurationProvider
Implements IDisposable
繼承
KeyPerFileConfigurationProvider
實作

建構函式

名稱 Description
KeyPerFileConfigurationProvider(KeyPerFileConfigurationSource)

初始化一個新實例。

屬性

名稱 Description
Data

取得或設定此提供者的設定鍵值對。

(繼承來源 ConfigurationProvider)

方法

名稱 Description
Dispose()

執行與釋放、釋放或重設非受控資源相關聯的應用程式定義工作。

GetChildKeys(IEnumerable<String>, String)

回傳該提供者擁有的金鑰清單。

(繼承來源 ConfigurationProvider)
GetReloadToken()

回傳 A IChangeToken 可用於監聽,當此提供者重新載入時。

(繼承來源 ConfigurationProvider)
Load()

載入設定值。

OnReload()

觸發換彈令牌並建立新的。

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

設定指定索引鍵的值。

(繼承來源 ConfigurationProvider)
ToString()

會產生一個字串,代表該提供者名稱及相關細節。

TryGet(String, String)

嘗試用給定鍵尋找一個值。

(繼承來源 ConfigurationProvider)

適用於