FileConfigurationSource 類別

定義

表示以檔案為基礎之 IConfigurationSource 的基底類別。

public ref class FileConfigurationSource abstract : Microsoft::Extensions::Configuration::IConfigurationSource
public abstract class FileConfigurationSource : Microsoft.Extensions.Configuration.IConfigurationSource
type FileConfigurationSource = class
    interface IConfigurationSource
Public MustInherit Class FileConfigurationSource
Implements IConfigurationSource
繼承
FileConfigurationSource
衍生
實作

建構函式

FileConfigurationSource()

初始化 FileConfigurationSource 的新執行個體。

屬性

FileProvider

用於存取檔案的內容。

OnLoadException

如果在 FileConfigurationProvider 中發生未攔截的例外狀況,則會呼叫。

Optional

判斷載入檔案是否為選擇性。

Path

檔案的路徑。

ReloadDelay

在呼叫載入之前,重新載入會等待的毫秒數。 這有助於避免在完整寫入檔案之前觸發重新載入。 預設為 250。

ReloadOnChange

判斷是否要在基礎檔案變更時載入來源。

方法

Build(IConfigurationBuilder)

建置此來源的 IConfigurationProvider

EnsureDefaults(IConfigurationBuilder)

呼叫以在建立器上使用任何預設設定,例如 FileProvider 或 FileLoadExceptionHandler。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ResolveFileProvider()

如果未設定任何檔案提供者,則針對絕對路徑,這會為最接近的現有目錄建立實體檔案提供者。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於