GetMaxPrivilege Method

The GetMaxPrivilege method of the AreaAccessChecker class returns the maximum privilege available for the specified area on the site.

Return Value

A Microsoft.SharePoint.Portal.Security.PortalRight value representing the maximum privilege available for the area on the site. However, note that the return value depends on the value set using the constructor of the AreaAccessChecker class and might not return the true value.

Example

The following example shows how to use the GetMaxPrivilege method.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security