InstallManager.Load 方法

定義

載入與目前 InstallManager 物件相關聯的安裝程式。

多載

Load(String, IDictionary<String,String>)
Load(IEnumerable<Installer>)

從物件的指定泛型 IEnumerable 集合載入安裝程式集合 Installer

Load(String)

從指定位置的檔案載入安裝程式集合。

Load(String, IDictionary<String,String>)

public:
 void Load(System::String ^ fileLocation, [Runtime::InteropServices::Out] System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ % extraData);
public void Load(string fileLocation, out System.Collections.Generic.IDictionary<string,string> extraData);
member this.Load : string *  -> unit
Public Sub Load (fileLocation As String, ByRef extraData As IDictionary(Of String, String))

參數

fileLocation
String

適用於

Load(IEnumerable<Installer>)

從物件的指定泛型 IEnumerable 集合載入安裝程式集合 Installer

public:
 void Load(System::Collections::Generic::IEnumerable<Microsoft::Web::PlatformInstaller::Installer ^> ^ installers);
public void Load(System.Collections.Generic.IEnumerable<Microsoft.Web.PlatformInstaller.Installer> installers);
member this.Load : seq<Microsoft.Web.PlatformInstaller.Installer> -> unit
Public Sub Load (installers As IEnumerable(Of Installer))

參數

installers
IEnumerable<Installer>

物件的 IEnumerable 集合 Installer

例外狀況

ArgumentNullException

參數 installersnull Visual Basic) 中 (Nothing

InvalidOperationException

每一安裝安裝記錄檔資料夾不是 Null 或空白。 這表示 InstallManager 正在重複使用,而且尚未正確初始化。

適用於

Load(String)

從指定位置的檔案載入安裝程式集合。

public:
 void Load(System::String ^ fileLocation);
public void Load(string fileLocation);
member this.Load : string -> unit
Public Sub Load (fileLocation As String)

參數

fileLocation
String

包含要載入之安裝程式清單的檔案位置。

適用於