Share via


Controller.RedirectToActionPermanent Method (String, String)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified action name, and controller name.

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

Syntax

'Declaration
Protected Friend Function RedirectToActionPermanent ( _
    actionName As String, _
    controllerName As String _
) As RedirectToRouteResult
'Usage
Dim actionName As String
Dim controllerName As String
Dim returnValue As RedirectToRouteResult

returnValue = Me.RedirectToActionPermanent(actionName, _
    controllerName)
protected internal RedirectToRouteResult RedirectToActionPermanent(
    string actionName,
    string controllerName
)
protected public:
RedirectToRouteResult^ RedirectToActionPermanent(
    String^ actionName, 
    String^ controllerName
)
 function RedirectToActionPermanent(
    actionName : String, 
    controllerName : String
) : RedirectToRouteResult

Parameters

Return Value

Type: System.Web.Mvc.RedirectToRouteResult
An instance of the RedirectResult class with the Permanent property set to true using the specified action name, and controller name.

See Also

Reference

Controller Class

RedirectToActionPermanent Overload

System.Web.Mvc Namespace