RedirectResult Constructor
Initializes a new instance of the RedirectResult class.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Sub New ( _
url As String _
)
public RedirectResult(
string url
)
public:
RedirectResult(
String^ url
)
Parameters
- url
Type: System.String
The target URL.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The url parameter is null reference (Nothing in Visual Basic). |