다음을 통해 공유


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

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