Namespace: System.Security.Permissions What is Declarative Code Access Security? Declarative Code Access security helps in restricting access to different resources; it also intimates the user if assembly required resource can’t be granted at the time of loading; it also helps in predetermining the resources an application require to run and it also protects system and resource from an attacker who intends to access unintended/protected resources. It also makes fine-tuned permission outline to make your application run in partially-trusted zone. Because permission attribute classes are inherited from CodeAccesSecurityAttribute they share the following two most common properties . Action : Specifies the security action to take. Use SecurityAction enumeration. Unrestricted : ...