Condividi tramite


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.

public:
 override void Load();
public override void Load ();
override this.Load : unit -> unit
Public Overrides Sub 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

Load(Stream)

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

Loads this provider's data from a stream.

public:
 abstract void Load(System::IO::Stream ^ stream);
public abstract void Load (System.IO.Stream stream);
override this.Load : System.IO.Stream -> unit
Public MustOverride Sub Load (stream As Stream)

Parameters

stream
Stream

The stream to read.

Applies to