ManageAreaSecurity(Microsoft.SharePoint.Portal.PortalContext, System.Guid) Method

The ManageAreaSecurity method of the SecurityManager class returns the permission collection for a specified area on a portal site.


ctx A Microsoft.SharePoint.Portal.PortalContext value that represents the portal site.

AreaID The ID for the area for which you want the permission collection.

Return Value

A Microsoft.SharePoint.Portal.Security.PermissionCollection object that represents the permission collection for the specified area on the portal site.


The following example shows how to use the ManageAreaSecurity method to get the PermissionCollection object for the News area and add a user to the area.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security