SPMobileUtility.Redirect Method (String, SPRedirectFlags, HttpContext)

Redirects the user to the specified URL, if it is valid.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Shared Function Redirect ( _
    url As String, _
    flags As SPRedirectFlags, _
    context As HttpContext _
) As Boolean
'Usage
Dim url As String
Dim flags As SPRedirectFlags
Dim context As HttpContext
Dim returnValue As Boolean

returnValue = SPMobileUtility.Redirect(url, _
    flags, context)
public static bool Redirect(
    string url,
    SPRedirectFlags flags,
    HttpContext context
)

Parameters

  • url
    Type: System.String

    The URL that is the target destination for the redirection.

  • context
    Type: System.Web.HttpContext

    The HttpContext object that encapsulates HTTP-specific information about the current HTTP request.

Return Value

Type: System.Boolean
true, if the target destination URL is valid and the user can be redirected; otherwise false.

See Also

Reference

SPMobileUtility Class

SPMobileUtility Members

Redirect Overload

Microsoft.SharePoint.Utilities Namespace