Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
FileConfigurationExtensions Class
Definition
- Namespace:
- Microsoft.Extensions.Configuration
- Assembly:
- Microsoft.Extensions.Configuration.FileExtensions.dll
- Package:
- Microsoft.Extensions.Configuration.FileExtensions v11.0.0-preview.5.26302.115
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides extension methods for FileConfigurationProvider.
public ref class FileConfigurationExtensions abstract sealed
public static class FileConfigurationExtensions
type FileConfigurationExtensions = class
Public Module FileConfigurationExtensions
- Inheritance
-
FileConfigurationExtensions
Remarks
For more information and examples, see File configuration provider.
Methods
| Name | Description |
|---|---|
| GetFileLoadExceptionHandler(IConfigurationBuilder) |
Gets a default action to be invoked for file-based providers when an error occurs. |
| GetFileProvider(IConfigurationBuilder) |
Gets the default IFileProvider to be used for file-based providers. |
| SetBasePath(IConfigurationBuilder, String) |
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) |
Sets the default IFileProvider to be used for file-based providers. |
Applies to
Feedback
Was this page helpful?
