ComManagedImportUtil.InstallAssembly(String, String, String) Método

Definição

Instala um assembly em um aplicativo COM+.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)

Parâmetros

asmpath
String

O caminho para o assembly.The path for the assembly.

parname
String

O nome da partição COM+.The COM+ partition name.

appname
String

O nome do aplicativo COM+.The COM+ application name.

Implementações

Exceções

Um chamador na cadeia de chamadas não tem permissão para acessar o código não gerenciado.A caller in the call chain does not have permission to access unmanaged code.

O assembly de entrada não tem um nome forte.The input assembly does not have a strong name.

Comentários

InstallAssembly chamadas RegistrationHelper.InstallAssembly , que executa as seguintes etapas:InstallAssembly calls RegistrationHelper.InstallAssembly, which performs the following steps:

  1. Registro do assembly.Registration of the assembly.

  2. Geração de uma biblioteca de tipos.Generation of a type library.

  3. Registro da biblioteca de tipos.Registration of the type library.

  4. Instalação da biblioteca de tipos no aplicativo especificado.Installation of the type library under the specified application.

  5. Configuração dos componentes contidos na biblioteca de tipos.Configuration of the components contained in the type library.

Esse método requer que o chamador tenha privilégios administrativos no computador local.This method requires the caller to have administrative privileges on the local computer.

Aplica-se a