ComManagedImportUtil.InstallAssembly(String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
Registration of the assembly.
Generation of a type library.
Registration of the type library.
Installation of the type library under the specified application.
Configuration of the components contained in the type library.
This method requires the caller to have administrative privileges on the local computer.