Partager via


Microsoft.SharePoint.Security Namespace

The Microsoft.SharePoint.Security namespace provides a set of code access permission and attribute classes designed to protect a specific set of resources and operations, such as access to the Windows SharePoint Services object model, the ability to do unsafe saving on HTTP Gets, and enabling Web Part to Web Part connections. The purpose of the attribute classes is to provide support for declarative security so that developers can specify the custom permission when using declarative syntax for security actions such as requests, demands, or assertions.

Classes

The following table lists the members of the Microsoft.SharePoint.Security namespace and shows a brief description of each.

Name Description
SharePointPermission Controls the ability to access SharePoint Products and Technologies resources.
SharePointPermissionAttribute Allows you to declaratively specify SharePoint Products and Technologies resources that your class can use.
WebPartPermission Controls the ability to access Web Part resources.
WebPartPermissionAttribute Allows you to declaratively specify Web Part resources that your class can use.