RedirectResult Constructor
Initializes a new instance of the RedirectResult class.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | RedirectResult(String) | Initializes a new instance of the RedirectResult class. |
![]() | RedirectResult(String, Boolean) | Initializes a new instance of the RedirectResult class using the specified URL and permanent-redirection flag. |
RedirectResult Constructor (String)
Initializes a new instance of the RedirectResult class.
| Exception | Condition |
|---|---|
| ArgumentNullException | The url parameter is null. |
RedirectResult Constructor (String, Boolean)
Initializes a new instance of the RedirectResult class using the specified URL and permanent-redirection flag.
Parameters
- url
-
Type:
System.String
The URL.
- permanent
-
Type:
System.Boolean
A value that indicates whether the redirection should be permanent.
Show:
