AccessDeniedException(String, Microsoft.SharePoint.Portal.Security.PortalRight, System.Exception) Constructor
The AccessDeniedException constructor initializes a new instance of the AccessDeniedException class with the specified error message, the rights needed to perform the attempted operation, and a reference to the inner exception that is the cause of this exception.
Parameters
message An error message that explains the reason for the exception, or an empty string.
rights One or more Microsoft.SharePoint.Portal.Security.PortalRight values that represent the rights that are needed in order to perform the attempted operation.
inner The exception that is the cause of this exception.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security