RegistrationServices.UnregisterAssembly(Assembly) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
- assembly
- Assembly
The assembly to be unregistered.
Returns
true
if assembly
contains types that were successfully unregistered; otherwise false
if the assembly contains no eligible types.
Implements
- Attributes
Exceptions
assembly
is null
.
The full name of assembly
is null
.
-or-
A method marked with ComUnregisterFunctionAttribute is not static
.
-or-
There is more than one method marked with ComUnregisterFunctionAttribute at a given level of the hierarchy.
-or-
The signature of the method marked with ComUnregisterFunctionAttribute is not valid.
A user-defined custom unregistration function (marked with the ComUnregisterFunctionAttribute attribute) throws an exception.
Remarks
UnregisterAssembly
removes the registry entries for the types in the specified assembly previously added by RegisterAssembly. This method also calls any unregistration functions found in the assembly.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기