RedirectResult Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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(String)
Initializes a new instance of the RedirectResult class.
public RedirectResult (string url);
new System.Web.Mvc.RedirectResult : string -> System.Web.Mvc.RedirectResult
Public Sub New (url As String)
Parameters
- url
- String
The target URL.
Exceptions
The url
parameter is null.
Applies to
RedirectResult(String, Boolean)
Initializes a new instance of the RedirectResult class using the specified URL and permanent-redirection flag.
public RedirectResult (string url, bool permanent);
new System.Web.Mvc.RedirectResult : string * bool -> System.Web.Mvc.RedirectResult
Public Sub New (url As String, permanent As Boolean)
Parameters
- url
- String
The URL.
- permanent
- Boolean
A value that indicates whether the redirection should be permanent.