Export (0) Print
Expand All

SharePointPermissionAttribute Class

Allows security actions for SharePointPermission to be applied to code using declarative security. This class cannot be inherited.

Namespace:  Microsoft.SharePoint.Security
Assembly:  Microsoft.SharePoint.Security (in Microsoft.SharePoint.Security.dll)

[SerializableAttribute]
[AttributeUsageAttribute(AttributeTargets.All, AllowMultiple = true)]
public sealed class SharePointPermissionAttribute : CodeAccessSecurityAttribute

The scope of the declaration that is allowed depends on 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft