NOTE: This API is now obsolete.
Allows security actions for the WebPartPermission to be applied to code using declarative security. This class cannot be inherited.
Assembly: Microsoft.SharePoint.Security (in Microsoft.SharePoint.Security.dll)
The scope of the declaration that is allowed is determined by the SecurityAction that is used.
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 only for declarative security. For imperative security, use the corresponding permission class.