RegistrationServices.UnregisterAssembly(Assembly) Metoda

Definicja

Wyrejestrowywał klasy w zarządzanym zestawie.

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

Parametry

assembly
Assembly

Zestaw, który ma zostać wyrejestrowany.

Zwraca

Boolean

true jeśli assembly zawiera typy, które zostały pomyślnie wyrejestrowane; w przeciwnym false razie, jeśli zestaw nie zawiera kwalifikujących się typów.

Implementuje

Atrybuty

Wyjątki

assembly to null.

Pełna nazwa to assembly null .

-lub- Metoda oznaczona za pomocą ComUnregisterFunctionAttribute metody nie jest metodą static .

-lub- Istnieje więcej niż jedna metoda oznaczona ComUnregisterFunctionAttribute za pomocą metody na danym poziomie hierarchii.

-lub- Podpis metody oznaczonej za pomocą ComUnregisterFunctionAttribute jest nieprawidłowy.

Zdefiniowana przez użytkownika niestandardowa funkcja wyrejestrowania (oznaczona za pomocą ComUnregisterFunctionAttribute atrybutu) zgłasza wyjątek.

Uwagi

UnregisterAssembly Usuwa wpisy rejestru dla typów w określonym zestawie wcześniej dodanym przez RegisterAssembly . Ta metoda wywołuje również wszystkie funkcje wyrejestrowania znalezione w zestawie.

Dotyczy