語言

KeyPerFileConfigurationSource 類別

定義

public ref class KeyPerFileConfigurationSource : Microsoft::Extensions::Configuration::IConfigurationSource
public class KeyPerFileConfigurationSource : Microsoft.Extensions.Configuration.IConfigurationSource
type KeyPerFileConfigurationSource = class
    interface IConfigurationSource
Public Class KeyPerFileConfigurationSource
Implements IConfigurationSource
繼承
KeyPerFileConfigurationSource
實作

建構函式

名稱 Description
KeyPerFileConfigurationSource()

製造商;

屬性

名稱 Description
FileProvider

FileProvider 的根目錄檔案會被用作設定資料。

IgnoreCondition

用來判斷檔案是否應該忽略其名稱。 預設使用 IgnorePrefix 這個字首。

IgnorePrefix

以此前綴開頭的檔案將被排除。 預設為「ignore」。

Optional

如果 false,則會拋棄該目錄。

ReloadDelay

重新載入的毫秒數會等待,然後才呼叫 Load。 這有助於避免在檔案完全寫入前觸發重新載入。 預設是250。

ReloadOnChange

判斷若底層檔案變更,是否會載入原始碼。

SectionDelimiter

分隔符用於將路徑中的個別鍵分隔開來。

方法

名稱 Description
Build(IConfigurationBuilder)

為這個來源建立基礎 KeyPerFileConfigurationProvider 。

適用於