Udostępnij za pośrednictwem


GetPortalRoleForCategoryManager Method

The GetPortalRoleForCategoryManager method of the SecurityManager class returns the roles inherited from the portal site for the specified area.

Parameters

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

CatID   The ID for the area for which you want the portal role.

Return Value

A Microsoft.SharePoint.Portal.Security.PortalRight value that represents the portal rights for the area.

Remarks

You need to have the ManageAreaSecurity right on the specified area to get the portal roles information.

Example

The following example shows how to get the roles inherited from the portal site for the News area.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security