SPUtility.SendAccessDeniedHeader Method

Requests a user name and password, and then opens the Error page for an access denied exception so that the user must request access to the site or list from the owner.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Shared Sub SendAccessDeniedHeader ( _
    ex As Exception _
)
'Usage
Dim ex As ExceptionSPUtility.SendAccessDeniedHeader(ex)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static void SendAccessDeniedHeader(
    Exception ex
)

Parameters

  • ex
    Type: System.Exception

    A System.Exception object that represents the exception.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace