SecurityManager Class
The SecurityManager class represents a security manager that adds roles and manages area and site security.
System.Object
Microsoft.SharePoint.Portal.Security.SecurityManager
Public Constructors
The following table shows the constructors of the SecurityManager class and a brief description of each.
Name | Description |
---|---|
SecurityManager | Initializes a new instance of the SecurityManager class. |
Public Methods
The following table shows the methods of the SecurityManager class and a brief description of each.
Name | Description |
---|---|
AddRole(Microsoft.SharePoint.Portal.PortalContext, String, String, Microsoft.SharePoint.Portal.Security.PortalRight) | Adds a role to a portal site with the specified title, description, and rights. |
ManageAreaSecurity(Microsoft.SharePoint.Portal.PortalContext, System.Guid) | Returns the permission collection for a specified area on a portal site. |
ManageSiteSecurity(Microsoft.SharePoint.Portal.PortalContext) | Returns the permission collection for a portal site. |
GetPortalRoleForCategoryManager(Microsoft.SharePoint.Portal.PortalContext, System.Guid) | Returns the portal role for the specified area in the portal site. |
Example
The following example shows how you can use the ManageSiteSecurity method of the SecurityManager class to browse through the PermissionCollection object for the portal site.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.
Requirements
Namespace: Microsoft.SharePoint.Portal.Security
Platforms: Microsoft Windows Server 2003
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Security: Code Access Security