Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Redirects the user to the specified URL, if it is valid, with the specified query strings.
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, _
queryStrings As String _
) As Boolean
'Usage
Dim url As String
Dim flags As SPRedirectFlags
Dim context As HttpContext
Dim queryStrings As String
Dim returnValue As Boolean
returnValue = SPMobileUtility.Redirect(url, _
flags, context, queryStrings)
public static bool Redirect(
string url,
SPRedirectFlags flags,
HttpContext context,
string queryStrings
)
Parameters
url
Type: System.StringThe URL that is the target destination for the redirection.
flags
Type: Microsoft.SharePoint.Utilities.SPRedirectFlagsA flag that specifies the process to be used in the redirection.
context
Type: System.Web.HttpContextThe HttpContext object that encapsulates HTTP-specific information about to the current HTTP request.
queryStrings
Type: System.StringThe URL query strings to be passed for use in the redirection.
Return Value
Type: System.Boolean
true if the target destination URL is valid and the user can be redirected; otherwise, false.