AppDomain.CreateDomain : AppDomain « Development Class « C# / C Sharp



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.SetData, GetData
2.Configure the AppDomainSetup
5.creates three instances of the same type. A local and two remote proxies to object instances are constructed:
6.OnUnhandledException method is added to the AppDomain.UnhandledException event