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 function RedirectResult(
	url : String, 
	permanent : boolean
)

Parameters

url
Type: System.String

The URL.

permanent
Type: System.Boolean

A value that indicates whether the redirection should be permanent.

Show: