System.Security.SecurityException.SecurityException C# (CSharp) Method

SecurityException() public method

public SecurityException ( string message, AssemblyName assemblyName, PermissionSet grant, PermissionSet refused, MethodInfo method, SecurityAction action, Object demanded, IPermission permThatFailed, Evidence evidence ) : System.Security
message string
assemblyName System.Reflection.AssemblyName
grant PermissionSet
refused PermissionSet
method System.Reflection.MethodInfo
action SecurityAction
demanded Object
permThatFailed IPermission
evidence System.Security.Policy.Evidence
return System.Security
        public SecurityException(string message, AssemblyName assemblyName, PermissionSet grant, PermissionSet refused, MethodInfo method, SecurityAction action, Object demanded, IPermission permThatFailed, Evidence evidence)
            : base(message)
        {
            PermissionSet.s_fullTrust.Assert();
            SetErrorCode(System.__HResults.COR_E_SECURITY);
            Action = action;
            if(permThatFailed != null)
                m_typeOfPermissionThatFailed = permThatFailed.GetType();
            FirstPermissionThatFailed = permThatFailed;
            Demanded = demanded;
            m_granted = (grant == null ? "" : grant.ToXml().ToString());
            m_refused = (refused == null ? "" : refused.ToXml().ToString());
            m_denied = "";
            m_permitOnly = "";
            m_assemblyName = assemblyName;
            Method = method;
            m_url = "";
            m_zone = SecurityZone.NoZone;
            if(evidence != null)
            {
                Url url = (Url)evidence.FindType(typeof(Url));
                if(url != null)
                    m_url = url.GetURLString().ToString();
                Zone zone = (Zone)evidence.FindType(typeof(Zone));
                if(zone != null)
                    m_zone = zone.SecurityZone;
            }
            m_debugString = this.ToString(true, false);
        }

Same methods

SecurityException::SecurityException ( ) : System.Security
SecurityException::SecurityException ( PermissionSet grantedSetObj, PermissionSet refusedSetObj ) : System.Security
SecurityException::SecurityException ( SerializationInfo info, StreamingContext context ) : System.Security
SecurityException::SecurityException ( String message ) : System.Security
SecurityException::SecurityException ( String message, Exception inner ) : System.Security
SecurityException::SecurityException ( String message, PermissionSet grantedSetObj, PermissionSet refusedSetObj ) : System.Security
SecurityException::SecurityException ( String message, Type type ) : System.Security
SecurityException::SecurityException ( String message, Type type, String state ) : System.Security
SecurityException::SecurityException ( string message, Object deny, Object permitOnly, MethodInfo method, Object demanded, IPermission permThatFailed ) : System.Security