Create an Application Domain - CSharp Custom Type

CSharp examples for Custom Type:AppDomain

Description

Create an Application Domain

Demo Code

using System;//  w w  w.  j  a v a2 s . c  o m
class MainClass
{
   public static void Main()
   {
      AppDomainSetup setupInfo = new AppDomainSetup();
      setupInfo.ApplicationBase = @"C:\MyRootDirectory";
      setupInfo.ConfigurationFile = "MyApp.config";
      setupInfo.PrivateBinPath = "bin;plugins;external";
      AppDomain newDomain = AppDomain.CreateDomain("My New AppDomain", null, setupInfo);
   }
}

Related Tutorials