FileConfigurationProvider.Load 方法

定義

多載

Load()

載入 Path 的檔案內容。Loads the contents of the file at Path.

Load(Stream)

從資料流載入此提供者的資料。Loads this provider's data from a stream.

Load()

載入 Path 的檔案內容。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 ()

例外狀況

如果來源上的 false 為選擇性,且檔案不存在於指定的路徑。If Optional is false on the source and a file does not exist at specified Path.

適用於

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)

參數

stream
Stream

要讀取的資料流。The stream to read.

適用於