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)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
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)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static bool RedirectValidate(
string url,
SPWeb web
)
Parameters
url
Type: System.StringThe URL for redirection.
web
Type: Microsoft.SharePoint.SPWebAn SPWeb object that represents the site.
Return Value
Type: System.Boolean
true if the URL is suitable for redirection; otherwise, false.