How to: Create and Use an Application Domain (C# Programming Guide)
Application domains provide a method of isolating your code for purposes of security and performance. For more information, see Application Domains (C# Programming Guide).
Using an application domain
-
Create the application domain. The common language runtime host creates an application domain automatically for your application. For information, see the topic How to: Create an Application Domain.
-
Configure the application domain. For more information, see How to: Configure an Application Domain.
-
Load an assembly into the application domain. For more information, see How to: Load Assemblies into an Application Domain.
-
Access the contents of the other assembly. For more information, see Executing Code in Another Application Domain (C# Programming Guide).
-
Unload the application domain. For more information, see How to: Unload an Application Domain.