Microsoft.Extensions.Configuration.FileExtensions Extension methods for . Sets the default to be used for file-based providers. The to add to. The default file provider instance. The . Gets the default to be used for file-based providers. The . The default . Sets the FileProvider for file-based providers to a PhysicalFileProvider with the base path. The to add to. The absolute path of file-based providers. The . Sets a default action to be invoked for file-based providers when an error occurs. The to add to. The Action to be invoked on a file load exception. The . Gets the default to be used for file-based providers. The . The . Base class for file based . Initializes a new instance with the specified source. The source settings. The source settings for this provider. Generates a string representing this provider name and relevant details. The configuration name. Loads the contents of the file at . Optional is false on the source and a directory cannot be found at the specified Path. Optional is false on the source and a file does not exist at specified Path. An exception was thrown by the concrete implementation of the method. Use the source callback if you need more control over the exception. Loads this provider's data from a stream. The stream to read. Dispose the provider. true if invoked from . Represents a base class for file based . Used to access the contents of the file. The path to the file. Determines if loading the file is optional. Determines whether the source will be loaded if the underlying file changes. Number of milliseconds that reload will wait before calling Load. This helps avoid triggering reload before a file is completely written. Default is 250. Will be called if an uncaught exception occurs in FileConfigurationProvider.Load. Builds the for this source. The . A Called to use any default settings on the builder like the FileProvider or FileLoadExceptionHandler. The . If no file provider has been set, for absolute Path, this will creates a physical file provider for the nearest existing directory. Contains information about a file load exception. The that caused the exception. The exception that occurred in Load. If true, the exception will not be rethrown. Throws an if is null. The reference type argument to validate as non-null. The name of the parameter with which corresponds. The expected physical path was '{0}'. The configuration file '{0}' was not found and is not optional. Failed to load configuration from file '{0}'.