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()

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

If Optional is false on the source and a file does not exist at specified Path.

If Optional is false on the source and part of a file or or directory cannot be found at the specified Path.

Wrapping any exception 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)

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