new AppDomainSetup() : AppDomainSetup « System « C# / C Sharp by API






new AppDomainSetup()

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

    }
}

   
  








Related examples in the same category

1.AppDomainSetup.ApplicationBase
2.AppDomainSetup.ConfigurationFile
3.AppDomainSetup.PrivateBinPath