Allows security actions for System.Security.Permissions.DataProtectionPermission to be applied to code using declarative security. This class cannot be inherited.
The scope of the declaration that is allowed depends on the System.Security.Permissions.SecurityAction value 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. System.Security.Permissions.DataProtectionPermissionAttribute is used only for declarative security. For imperative security, use the System.Security.Permissions.DataProtectionPermission class.