Publish::GacRemove Method (String^)
.NET Framework (current version)
Removes an assembly from the global assembly cache.
Assembly: System.EnterpriseServices (in System.EnterpriseServices.dll)
Parameters
- AssemblyPath
-
Type:
System::String^
The file system path for the assembly.
Implements
IComSoapPublisher::GacRemove(String^)| Exception | Condition |
|---|---|
| SecurityException | A caller in the call chain does not have permission to access unmanaged code. -or- The caller does not have path discovery permission. |
| ArgumentNullException | AssemblyPath is null. |
| ArgumentException | AssemblyPath is empty. |
| FileNotFoundException | AssemblyPath is not found. |
| FileLoadException | An assembly or module was loaded twice with two different evidences. |
| BadImageFormatException | AssemblyPath is not a valid assembly. |
SecurityPermission
for the ability to access unmanaged code. Associated enumeration: SecurityPermissionFlag::UnmanagedCode
.NET Framework
Available since 1.1
Available since 1.1
Show: