SPUtility.RedirectValidate method (String, SPWeb)

Determines whether a URL is suitable for redirection by verifying that it is either relative or resides within the current Web server or portal server within the current Web application.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function RedirectValidate ( _
    url As String, _
    web As SPWeb _
) As Boolean
'Usage
Dim url As String
Dim web As SPWeb
Dim returnValue As Boolean

returnValue = SPUtility.RedirectValidate(url, _
    web)
public static bool RedirectValidate(
    string url,
    SPWeb web
)

Parameters

Return value

Type: System.Boolean
true if the URL is suitable for redirection; otherwise, false.

See also

Reference

SPUtility class

SPUtility members

RedirectValidate overload

Microsoft.SharePoint.Utilities namespace