Publish.GacRemove(String) Method

Definition

Removes an assembly from the global assembly cache.

C#
public void GacRemove(string AssemblyPath);

Parameters

AssemblyPath
String

The file system path for the assembly.

Implements

Exceptions

A caller in the call chain does not have permission to access unmanaged code.

-or-

The caller does not have path discovery permission.

AssemblyPath is null.

AssemblyPath is empty.

AssemblyPath is not found.

An assembly or module was loaded twice with two different evidences.

AssemblyPath is not a valid assembly.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1