FileConfigurationProvider.Load Method

Definition

Overloads

Load()

Loads the contents of the file at Path.

Load(Stream)

Loads this provider's data from a stream.

Load()

Source:
FileConfigurationProvider.cs
Source:
FileConfigurationProvider.cs
Source:
FileConfigurationProvider.cs

Loads the contents of the file at Path.

C#
public override void Load();

Exceptions

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 Load() method. Use the source OnLoadException callback if you need more control over the exception.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

Load(Stream)

Source:
FileConfigurationProvider.cs
Source:
FileConfigurationProvider.cs
Source:
FileConfigurationProvider.cs

Loads this provider's data from a stream.

C#
public abstract void Load(System.IO.Stream stream);

Parameters

stream
Stream

The stream to read.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)