SPUtility.SendAccessDeniedHeader method
SharePoint 2013
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.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)] public static void SendAccessDeniedHeader( Exception ex )
Parameters
- ex
- Type: System.Exception
A System.Exception object that represents the exception.