<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="11.0.0-preview.4.26230.115" />

Microsoft.Extensions.Configuration.FileConfigurationSource

public abstract class FileConfigurationSource : IConfigurationSource
Provides the base class for file-based IConfigurationSource.
public IFileProvider FileProvider { get; set; }

Gets or sets the provider used to access the contents of the file.

Gets or sets the action that's called if an uncaught exception occurs in FileConfigurationProvider.Load.

public bool Optional { get; set; }

Gets or sets a value that indicates whether loading the file is optional.

public string Path { get; set; }

Gets or sets the path to the file.

public int ReloadDelay { get; set; }

Gets or sets the number of milliseconds that reload will wait before calling Load.

public bool ReloadOnChange { get; set; }

Gets or sets a value that indicates whether the source will be loaded if the underlying file changes.

public abstract IConfigurationProvider Build(IConfigurationBuilder builder)

Builds the IConfigurationProvider for this source.

public void EnsureDefaults(IConfigurationBuilder builder)

Called to use any default settings on the builder like the FileProvider or FileLoadExceptionHandler.

public void ResolveFileProvider()

Creates a physical file provider for the file's directory if no file provider has been set, for absolute Path.