Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Publish::GacRemove Method (String^)

 

Removes an assembly from the global assembly cache.

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

public:
virtual void GacRemove(
	String^ AssemblyPath
) sealed

Parameters

AssemblyPath
Type: System::String^

The file system path for the assembly.

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
Return to top
Show:
© 2017 Microsoft