Controller::RedirectToRoutePermanent Method
Returns an instance of the RedirectResult class with the Permanent property set to true.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | RedirectToRoutePermanent(Object^) | Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values. |
![]() | RedirectToRoutePermanent(RouteValueDictionary^) | Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values. |
![]() | RedirectToRoutePermanent(String^) | Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name. |
![]() | RedirectToRoutePermanent(String^, Object^) | Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values. |
![]() | RedirectToRoutePermanent(String^, RouteValueDictionary^) | Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values. |
Controller::RedirectToRoutePermanent Method (Object^)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values.
Parameters
- routeValues
-
Type:
System::Object^
The route name.
Return Value
Type: System.Web.Mvc::RedirectToRouteResult^Returns an instance of the RedirectResult class with the Permanent property set to true.
Controller::RedirectToRoutePermanent Method (RouteValueDictionary^)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values.
public protected: RedirectToRouteResult^ RedirectToRoutePermanent( RouteValueDictionary^ routeValues )
Parameters
- routeValues
-
Type:
System.Web.Routing::RouteValueDictionary^
The route values.
Return Value
Type: System.Web.Mvc::RedirectToRouteResult^An instance of the RedirectResult class with the Permanent property set to true using the specified route values.
Controller::RedirectToRoutePermanent Method (String^)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name.
Parameters
- routeName
-
Type:
System::String^
The route name.
Return Value
Type: System.Web.Mvc::RedirectToRouteResult^Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name.
Controller::RedirectToRoutePermanent Method (String^, Object^)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values.
public protected: RedirectToRouteResult^ RedirectToRoutePermanent( String^ routeName, Object^ routeValues )
Parameters
- routeName
-
Type:
System::String^
The route name.
- routeValues
-
Type:
System::Object^
The route values.
Return Value
Type: System.Web.Mvc::RedirectToRouteResult^An instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values.
Controller::RedirectToRoutePermanent Method (String^, RouteValueDictionary^)
Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values.
public protected: virtual RedirectToRouteResult^ RedirectToRoutePermanent( String^ routeName, RouteValueDictionary^ routeValues )
Parameters
- routeName
-
Type:
System::String^
The route name.
- routeValues
-
Type:
System.Web.Routing::RouteValueDictionary^
The route values.
Return Value
Type: System.Web.Mvc::RedirectToRouteResult^An instance of the RedirectResult class with the Permanent property set to true.
