Export (0) Print
Expand All

RedirectResult Constructor (String, Boolean)

Initializes a new instance of the RedirectResult class using the specified URL and permanent-redirection flag.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public RedirectResult(
	string url,
	bool permanent
)

Parameters

url
Type: System.String

The URL.

permanent
Type: System.Boolean

A value that indicates whether the redirection should be permanent.

Show:
© 2014 Microsoft