Elmah.HttpModuleRegistry.IsHighlyTrusted C# (CSharp) Méthode

IsHighlyTrusted() private static méthode

private static IsHighlyTrusted ( ) : bool
Résultat bool
        private static bool IsHighlyTrusted() 
        {
            try
            {
                var permission = new AspNetHostingPermission(AspNetHostingPermissionLevel.High);
                permission.Demand();
                return true;
            }
            catch (SecurityException)
            {
                return false;
            }
        }