FileConfigurationExtensions 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供 的 FileConfigurationProvider擴展方法 。
public ref class FileConfigurationExtensions abstract sealed
public static class FileConfigurationExtensions
type FileConfigurationExtensions = class
Public Module FileConfigurationExtensions
- 繼承
-
FileConfigurationExtensions
備註
欲了解更多資訊與範例,請參閱 檔案設定提供者。
方法
| 名稱 | Description |
|---|---|
| GetFileLoadExceptionHandler(IConfigurationBuilder) |
當發生錯誤時,會有一個預設動作用於檔案型提供者。 |
| GetFileProvider(IConfigurationBuilder) |
預設 IFileProvider 是用於檔案型提供者。 |
| SetBasePath(IConfigurationBuilder, String) |
將檔案型提供者的 FileProvider 設定為帶有基礎路徑的 PhysicalFileProvider。 |
| SetFileLoadExceptionHandler(IConfigurationBuilder, Action<FileLoadExceptionContext>) |
設定一個預設動作,當檔案型提供者發生錯誤時會被呼叫。 |
| SetFileProvider(IConfigurationBuilder, IFileProvider) |
預設 IFileProvider 為用於檔案型提供者。 |