Controller::RedirectToRoutePermanent Method

 

Returns an instance of the RedirectResult class with the Permanent property set to true.

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

NameDescription
System_CAPS_protmethodRedirectToRoutePermanent(Object^)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values.

System_CAPS_protmethodRedirectToRoutePermanent(RouteValueDictionary^)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values.

System_CAPS_protmethodRedirectToRoutePermanent(String^)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name.

System_CAPS_protmethodRedirectToRoutePermanent(String^, Object^)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values.

System_CAPS_protmethodRedirectToRoutePermanent(String^, RouteValueDictionary^)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values.

Return to top

Controller::RedirectToRoutePermanent Method (Object^)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values.

public protected:
RedirectToRouteResult^ RedirectToRoutePermanent(
	Object^ routeValues
)

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.

Return to top

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.

Return to top

Controller::RedirectToRoutePermanent Method (String^)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name.

public protected:
RedirectToRouteResult^ RedirectToRoutePermanent(
	String^ routeName
)

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.

Return to top

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.

Return to top

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.

Return to top
Show: