ApplicationDomain.Unload Method ()


Unloads the application domain.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public void Unload()

This method unloads the application domain and releases references to any assemblies the application domain has loaded.

The unload operation is not complete until the application domain's threads have been terminated.

The Unload method terminates the threads in the application domain by calling the Thread.Abort method on each thread. Although the threads should terminate promptly, they can continue to execute for an unpredictable period of time.

The following example demonstrates how to view all properties and unload an application domain.

Return to top