Edit

Share via


ComManagedImportUtil.InstallAssembly(String, String, String) Method

Definition

Installs an assembly into a COM+ application.

public:
 virtual void InstallAssembly(System::String ^ asmpath, System::String ^ parname, System::String ^ appname);
public void InstallAssembly (string asmpath, string parname, string appname);
abstract member InstallAssembly : string * string * string -> unit
override this.InstallAssembly : string * string * string -> unit
Public Sub InstallAssembly (asmpath As String, parname As String, appname As String)

Parameters

asmpath
String

The path for the assembly.

parname
String

The COM+ partition name.

appname
String

The COM+ application name.

Implements

Exceptions

A caller in the call chain does not have permission to access unmanaged code.

The input assembly does not have a strong name.

Remarks

InstallAssembly calls RegistrationHelper.InstallAssembly, which performs the following steps:

  1. Registration of the assembly.

  2. Generation of a type library.

  3. Registration of the type library.

  4. Installation of the type library under the specified application.

  5. Configuration of the components contained in the type library.

This method requires the caller to have administrative privileges on the local computer.

Applies to