Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DetermineRedirectUrl method
Collapse the table of content
Expand the table of content

SPUtility.DetermineRedirectUrl method

Helper function that determines a redirection URL, typically for server-side redirects. For example, a redirection that uses SPUtility.Redirect.

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

public static bool DetermineRedirectUrl(
	string urlProposed,
	SPRedirectFlags flags,
	HttpContext context,
	string queryString,
	out string urlRedirect


Type: System.String

The redirection URL.

Type: Microsoft.SharePoint.Utilities.SPRedirectFlags

A bit flag array consisting of one or more values from SPRedirectFlags.

Type: System.Web.HttpContext

The HttpContext to use, typically Current.

Type: System.String

Additional query string to use for the redirection URL. This is appended to the returned URL urlRedirect.

Type: System.String

When this method returns, contains a String that contains the redirection URL. This parameter is passed uninitialized.

Return value

Type: System.Boolean
A redirection URL.
© 2015 Microsoft