IRegistrationServices.UnregisterAssembly(Assembly) Metoda

Definice

Zruší registraci tříd ve spravovaném sestavení.

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

Parametry

assembly
Assembly

Sestavení, které se má zrušit registrace.

Návraty

true pokud assembly obsahuje typy, které byly úspěšně zrušeny; v opačném případě false , pokud sestavení neobsahuje žádné oprávněné typy.

Atributy

Výjimky

assembly je null.

Úplný název souboru assembly je null.

-nebo-

Metoda označená pomocí ComUnregisterFunctionAttribute není static.

-nebo-

Na dané úrovni hierarchie je označeno ComUnregisterFunctionAttribute více než jedna metoda.

-nebo-

Podpis metody označené ComUnregisterFunctionAttribute pomocí není platný.

Poznámky

UnregisterAssembly odebere položky registru pro typy v zadaném sestavení, které bylo dříve přidáno nástrojem RegisterAssembly. Tato metoda také volá všechny funkce zrušení registrace nalezené v sestavení.

Platí pro