AccessDeniedException Class

NOTE: This API is now obsolete.

Obsolete. Use classes in the Microsoft.SharePoint namespace in Windows SharePoint Services 3.0 instead.

Inheritance Hierarchy

System.Object
  System.Exception
    System.SystemException
      System.Security.SecurityException
        Microsoft.SharePoint.Portal.Security.AccessDeniedException

Namespace:  Microsoft.SharePoint.Portal.Security
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
<ObsoleteAttribute("This exception is obsolete.")> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class AccessDeniedException _
    Inherits SecurityException
'Usage
Dim instance As AccessDeniedException
[ObsoleteAttribute("This exception is obsolete.")]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class AccessDeniedException : SecurityException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

AccessDeniedException Members

Microsoft.SharePoint.Portal.Security Namespace