SPEventPropertiesBase.RedirectUrl property
NOTE: This API is now obsolete.
A URL to redirect to when the status of SPEventReceiverStatus is CancelWithRedirectUrl.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<ObsoleteAttribute("Default list forms are committed through asynchronous XmlHttpRequests, so redirect urls specified in this way aren't followed by default. In order to force a list form to follow a cancelation redirect url, set the list form web part's CSRRenderMode property to CSRRenderMode.ServerRender")> _
Public Property RedirectUrl As String
Get
Set
'Usage
Dim instance As SPEventPropertiesBase
Dim value As String
value = instance.RedirectUrl
instance.RedirectUrl = value
[ObsoleteAttribute("Default list forms are committed through asynchronous XmlHttpRequests, so redirect urls specified in this way aren't followed by default. In order to force a list form to follow a cancelation redirect url, set the list form web part's CSRRenderMode property to CSRRenderMode.ServerRender")]
public string RedirectUrl { get; set; }
Property value
Type: System.String
Returns a String of the URL to redirect to.