GetMaxPrivilege Method

The GetMaxPrivilege method of the SiteAccessChecker class returns the maximum privilege available on the site for the user.

Return Value

A Microsoft.SharePoint.Portal.Security.PortalRight value representing the maximum privilege available on the site. However, note that the return value depends on the value set using the constructor of the SiteAccessChecker 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