Export (0) Print
Expand All

IComSoapPublisher.UnRegisterAssembly Method

Unregisters a COM interop assembly.

Namespace:  System.EnterpriseServices.Internal
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

void UnRegisterAssembly(
	string AssemblyPath
)

Parameters

AssemblyPath
Type: System.String

The file system path for the assembly.

ExceptionCondition
SecurityException

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.

ArgumentNullException

AssemblyPath is null.

FileNotFoundException

AssemblyPath is not found, or a file name extension is not specified.

BadImageFormatException

AssemblyPath is not a valid assembly.

FileLoadException

An assembly or module was loaded twice with two different evidences, or the assembly name is longer than MAX_PATH characters.

InvalidOperationException

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.

The implementation of UnRegisterAssembly uses Regasm.exe to unregister the creatable classes in the assembly. For more information, see Regasm.exe (Assembly Registration Tool).

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft