Unregisters a COM interop assembly.
Assembly: System.EnterpriseServices (in System.EnterpriseServices.dll)
A caller in the call chain does not have permission to access unmanaged code.
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 is longer than MAX_PATH characters.
A method marked with ComUnregisterFunctionAttribute is not static.
There is more than one method marked with ComUnregisterFunctionAttribute at a given level of the hierarchy.
The signature of the method marked with ComUnregisterFunctionAttribute is not valid.
The implementation of uses Regasm.exe to unregister the creatable classes in the assembly. For more information, see Regasm.exe (Assembly Registration Tool).
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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.