Export (0) Print
Expand All
Expand Minimize

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
)

Parameters

urlProposed
Type: System.String

The redirection URL.

flags
Type: Microsoft.SharePoint.Utilities.SPRedirectFlags

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

context
Type: System.Web.HttpContext

The HttpContext to use, typically Current.

queryString
Type: System.String

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

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.
Show:
© 2014 Microsoft