See Also: CodeAccessSecurityAttribute Members
The types that derive from System.Security.Permissions.CodeAccessSecurityAttribute are used to secure access to resources or securable operations.
The security information declared by a security attribute is stored in the metadata of the attribute target, and is accessed by the system at run-time. Security attributes are used for declarative security only. Use the corresponding permission class derived from System.Security.CodeAccessPermission for imperative security.