AreaAccessChecker(Microsoft.SharePoint.Portal.PortalContext, Microsoft.SharePoint.Portal.Security.PortalRight, System.Guid) Constructor
The AreaAccessChecker constructor initializes a new instance of the AreaAccessChecker class.
Parameters
ctx A Microsoft.SharePoint.Portal.PortalContext object that represents the current portal site.
rights A Microsoft.SharePoint.Portal.Security.PortalRight value that specifies the area rights you want to check against the specified area. If you pass site rights, you will get an InvalidMaskException.
CatID A GUID that represents the Category ID for the area on the site.
Example
The following example shows how to create an AreaAccessChecker object using the constructor. Note that the Demand method will throw an exception if you do not have the specified right (Create Category) in the News area.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security