Share via


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

  1. 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.

  2. Configure the application domain. For more information, see How to: Configure an Application Domain.

  3. Load an assembly into the application domain. For more information, see How to: Load Assemblies into an Application Domain.

  4. Access the contents of the other assembly. For more information, see Executing Code in Another Application Domain (C# Programming Guide).

  5. Unload the application domain. For more information, see How to: Unload an Application Domain.

See Also

Concepts

C# Programming Guide

Application Domains Overview

Application Domains and Assemblies

Programming with Application Domains

Reference

Application Domains (C# Programming Guide)

Other Resources

Application Domains

Programming with Application Domains and Assemblies