FileConfigurationExtensions 類別

定義

FileConfigurationProvider 的擴充方法。Extension methods for FileConfigurationProvider.

public ref class FileConfigurationExtensions abstract sealed
public static class FileConfigurationExtensions
type FileConfigurationExtensions = class
Public Module FileConfigurationExtensions
繼承
FileConfigurationExtensions

方法

GetFileLoadExceptionHandler(IConfigurationBuilder)

取得要用於檔案型提供者的預設 IFileProviderGets the default IFileProvider to be used for file-based providers.

GetFileProvider(IConfigurationBuilder)

取得要用於檔案型提供者的預設 IFileProviderGets the default IFileProvider to be used for file-based providers.

SetBasePath(IConfigurationBuilder, String)

將檔案型提供者之 FileProvider 設定為具有基底路徑的 PhysicalFileProvider。Sets the FileProvider for file-based providers to a PhysicalFileProvider with the base path.

SetFileLoadExceptionHandler(IConfigurationBuilder, Action<FileLoadExceptionContext>)

設定在發生錯誤時,要針對檔案型提供者叫用的預設動作。Sets a default action to be invoked for file-based providers when an error occurs.

SetFileProvider(IConfigurationBuilder, IFileProvider)

設定要用於檔案型提供者的預設 IFileProviderSets the default IFileProvider to be used for file-based providers.

適用於