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

Loads the contents of the file at Path.

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 9 (package-provided) og andre versjoner
Produkt Versjoner
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

Load(Stream)

Source:
FileConfigurationProvider.cs
Source:
FileConfigurationProvider.cs

Loads this provider's data from a stream.

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

Parameters

stream
Stream

The stream to read.

Applies to

.NET 9 (package-provided) og andre versjoner
Produkt Versjoner
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)