Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Obtenir le ‘AppDomainSetup’

Charger,une,Assemblée,avec,un,nom
{filelink=17562}

using System;
using System.Reflection;
using System.Threading;
 
class ExempleAppDomainSetup
{
    public static void Main()
    {
        string nomDomaine = Thread.GetDomain().FriendlyName;
        Console.WriteLine(nomDomaine);
 
        string exeAssembly = Assembly.GetEntryAssembly().FullName;
        Console.WriteLine(exeAssembly);
 
        AppDomainSetup ads = new AppDomainSetup();
        ads.ApplicationBase = "file:///" + System.Environment.CurrentDirectory;
        ads.DisallowBindingRedirects = false;
        ads.DisallowCodeDownload = true;
        ads.ConfigurationFile = AppDomain.CurrentDomain.SetupInformation.ConfigurationFile;
 
    }
}

No comments yet.

Leave a Comment