CodeAccessSecurityAttributeECMA 1.0, serializable

System.Security.Permissions (mscorlib.dll)abstract class
public abstract class CodeAccessSecurityAttribute : SecurityAttribute {
// Public Constructors
   public CodeAccessSecurityAttribute(SecurityAction action);

This abstract class, which extends the SecurityAttribute class, provides the base class from which all permission attributes derive. Permission attributes provide the mechanism through which to express declarative security statements for various program elements. By convention, all permission attributes that derive from CodeAccessSecurityAttribute implement a constructor that takes a value of the SecurityAction enumeration. The value of the SecurityAction argument specifies the declarative security statement represented by the permission attribute instance.


System.Object System.Attribute SecurityAttribute CodeAccessSecurityAttribute


Multiple types

Valid On

Assembly, Class, Struct, Constructor, Method

    Part V: API Quick Reference