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:
Registro do assembly.Registration of the assembly.
Geração de uma biblioteca de tipos.Generation of a type library.
Registro da biblioteca de tipos.Registration of the type library.
Instalação da biblioteca de tipos no aplicativo especificado.Installation of the type library under the specified application.
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.