CatchAccessDeniedException Property
The CatchAccessDeniedException property of the SPSite class gets or sets a Boolean value that specifies whether to handle access denied exceptions and require user authentication.
Property Value
true to handle access denied exceptions and require user authentication; otherwise, false.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security