RegistrationServices.UnregisterAssembly(Assembly) Método

Definição

Cancela o registro das classes em um assembly gerenciado.Unregisters the classes in a managed assembly.

public:
 virtual bool UnregisterAssembly(System::Reflection::Assembly ^ assembly);
public virtual bool UnregisterAssembly (System.Reflection.Assembly assembly);
[System.Security.SecurityCritical]
public virtual bool UnregisterAssembly (System.Reflection.Assembly assembly);
abstract member UnregisterAssembly : System.Reflection.Assembly -> bool
override this.UnregisterAssembly : System.Reflection.Assembly -> bool
[<System.Security.SecurityCritical>]
abstract member UnregisterAssembly : System.Reflection.Assembly -> bool
override this.UnregisterAssembly : System.Reflection.Assembly -> bool
Public Overridable Function UnregisterAssembly (assembly As Assembly) As Boolean

Parâmetros

assembly
Assembly

O assembly a ter o registro cancelado.The assembly to be unregistered.

Retornos

Boolean

true se assembly contiver tipos que tiveram o registro cancelado com êxito; caso contrário, false se o assembly contiver tipos não elegíveis.true if assembly contains types that were successfully unregistered; otherwise false if the assembly contains no eligible types.

Implementações

Atributos

Exceções

assembly é null.assembly is null.

O nome completo de assembly é null.The full name of assembly is null.

- ou --or- Um método marcado com ComUnregisterFunctionAttribute não é static.A method marked with ComUnregisterFunctionAttribute is not static.

- ou --or- Há mais de um método marcado com ComUnregisterFunctionAttribute em determinado nível da hierarquia.There is more than one method marked with ComUnregisterFunctionAttribute at a given level of the hierarchy.

- ou --or- A assinatura do método marcada com ComUnregisterFunctionAttribute não é válida.The signature of the method marked with ComUnregisterFunctionAttribute is not valid.

Uma função de cancelamento de registro personalizada definida pelo usuário (marcada com o atributo ComUnregisterFunctionAttribute) gera uma exceção.A user-defined custom unregistration function (marked with the ComUnregisterFunctionAttribute attribute) throws an exception.

Comentários

UnregisterAssembly Remove as entradas do registro para os tipos no assembly especificado adicionado anteriormente pelo RegisterAssembly .UnregisterAssembly removes the registry entries for the types in the specified assembly previously added by RegisterAssembly. Esse método também chama qualquer função de cancelamento de registro encontrada no assembly.This method also calls any unregistration functions found in the assembly.

Aplica-se a