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)
Available in Sandboxed Solutions: No

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