This documentation is archived and is not being maintained.

Publish.GacRemove Method

Removes an assembly from the global assembly cache.

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

public void GacRemove (
	string AssemblyPath
)
public final void GacRemove (
	String AssemblyPath
)
public final function GacRemove (
	AssemblyPath : String
)

Parameters

AssemblyPath

The file system path for the assembly.

Exception typeCondition

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 a null reference (Nothing in Visual Basic).

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0, 1.1, 1.0
Show: