Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Performs URL redirection to the root folder of the view when the content type of the root folder differs from the content type of the view.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub RedirectIfNecessary
'Usage
Dim instance As SPViewContext
instance.RedirectIfNecessary()
public void RedirectIfNecessary()
Remarks
The RedirectIfNecessary method silently fails if the NeedToRedirect property is false.