IComSoapPublisher.UnRegisterAssembly(String) 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 a COM interop assembly.
public:
void UnRegisterAssembly(System::String ^ AssemblyPath);
public void UnRegisterAssembly (string AssemblyPath);
abstract member UnRegisterAssembly : string -> unit
Public Sub UnRegisterAssembly (AssemblyPath As String)
Parameters
- AssemblyPath
- String
The file system path for the assembly.
Exceptions
A caller in the call chain does not have permission to access unmanaged code.
-or-
A codebase that does not start with "file://" was specified without the required WebPermission.
AssemblyPath
is null
.
AssemblyPath
is not found, or a file name extension is not specified.
AssemblyPath
is not a valid assembly.
An assembly or module was loaded twice with two different evidences, or the assembly name exceeds the system-defined maximum length.
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.
Remarks
The implementation of UnRegisterAssembly uses Regasm.exe to unregister the creatable classes in the assembly. For more information, see Regasm.exe (Assembly Registration Tool).
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om