SendAccessDeniedHeader method
TOC
Collapse the table of content
Expand the table of content

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)

'Declaration
Public Shared Sub SendAccessDeniedHeader ( _
	ex As Exception _
)
'Usage
Dim ex As Exception

SPUtility.SendAccessDeniedHeader(ex)

Parameters

ex
Type: System.Exception

A System.Exception object that represents the exception.

Show:
© 2016 Microsoft