Demand Method
The Demand method of the SiteAccessChecker class throws an exception if the user does not have the specified right.
Example
The following example shows how to use the Demand method. Note that this method throws an exception if you do not have the specified right on the portal site.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security