Share via


SPVirtualServer.CatchAccessDeniedException property

NOTE: This API is now obsolete.

Obsolete. Use the CatchAccessDeniedException property of the Microsoft.SharePoint.SPSecurity class instead. (In Windows SharePoint Services 2.0, the CatchAccessDeniedException class was used to get or set a Boolean value that specified whether to handle Access denied exceptions and require user authentication, and is maintained for backward compatibility.)

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use SPSecurity.CatchAccessDeniedException instead")> _
Public Property CatchAccessDeniedException As Boolean
    Get
    Set
'Usage
Dim instance As SPVirtualServer
Dim value As Boolean

value = instance.CatchAccessDeniedException

instance.CatchAccessDeniedException = value
[ObsoleteAttribute("Use SPSecurity.CatchAccessDeniedException instead")]
public bool CatchAccessDeniedException { get; set; }

Property value

Type: System.Boolean
true if access denied exceptions are handled and user authentication is required; otherwise, false.

See also

Reference

SPVirtualServer class

SPVirtualServer members

Microsoft.SharePoint.Administration namespace