Configure the application domain setup information : AppDomainSetup : Assembly C# Examples


C# Examples » Assembly » AppDomainSetup »

 

Configure the application domain setup information









    
using  System;

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);

        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Assembly
» AppDomainSetup