Share via


Microsoft.SharePoint.Security 命名空间

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.

  说明
公共类 SharePointPermission 代表控制能够访问 Microsoft SharePoint 产品和技术的自定义权限。此类不能继承。
公共类 SharePointPermissionAttribute 允许SharePointPermission要应用于使用声明性安全代码的安全操作。此类不能继承。
公共类 WebPartPermission 已过时。代表控制能够访问 Web 部件资源的自定义权限。
公共类 WebPartPermissionAttribute 已过时。允许WebPartPermission要应用于使用声明性安全代码的安全操作。此类不能继承。