Share via


InstallManager.Load Method

Definition

Loads the installers associated with the current InstallManager object.

Overloads

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

Loads a collection of installers from the given generic IEnumerable collection of Installer objects.

Load(String)

Loads a collection of installers from the file at the given location.

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

Parameters

fileLocation
String

Applies to

Load(IEnumerable<Installer>)

Loads a collection of installers from the given generic IEnumerable collection of Installer objects.

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

Parameters

installers
IEnumerable<Installer>

An IEnumerable collection of Installer objects.

Exceptions

ArgumentNullException

The installers parameter is null (Nothing in Visual Basic)

InvalidOperationException

The per-installation install log folder was not null or empty. This indicates the InstallManager is being reused and has not been properly reinitialized.

Applies to

Load(String)

Loads a collection of installers from the file at the given location.

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

Parameters

fileLocation
String

The location of the file that contains a list of installers to load.

Applies to