Redigera

Dela via


IRegistrationHelper.InstallAssembly Method

Definition

Installs the assembly into the COM+ catalog.

public:
 void InstallAssembly(System::String ^ assembly, [Runtime::InteropServices::Out] System::String ^ % application, [Runtime::InteropServices::Out] System::String ^ % tlb, System::EnterpriseServices::InstallationFlags installFlags);
public void InstallAssembly (string assembly, out string application, out string tlb, System.EnterpriseServices.InstallationFlags installFlags);
abstract member InstallAssembly : string * string * string * System.EnterpriseServices.InstallationFlags -> unit
Public Sub InstallAssembly (assembly As String, ByRef application As String, ByRef tlb As String, installFlags As InstallationFlags)

Parameters

assembly
String

The assembly name as a file or the strong name of an assembly in the global assembly cache (GAC).

application
String

The application parameter can be null. If it is, the name of the application is automatically generated based on the name of the assembly or the ApplicationName attribute. If the application contains an ApplicationID attribute, the attribute takes precedence.

tlb
String

The name of the output type library (TLB) file, or a string containing null if the registration helper is expected to generate the name. On call completion, the actual name used is placed in the parameter.

installFlags
InstallationFlags

The installation options specified in the enumeration.

Remarks

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

Applies to