ControllerBase.RedirectToActionPermanent Method

Definition

Overloads

RedirectToActionPermanent(String, String, String)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName, controllerName, and fragment.

RedirectToActionPermanent(String, String, Object)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName, controllerName, and routeValues.

RedirectToActionPermanent(String, String, Object, String)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName, controllerName, routeValues, and fragment.

RedirectToActionPermanent(String, Object)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName and routeValues.

RedirectToActionPermanent(String)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName.

RedirectToActionPermanent(String, String)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName and controllerName.

RedirectToActionPermanent(String, String, String)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName, controllerName, and fragment.

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToActionResult ^ RedirectToActionPermanent(System::String ^ actionName, System::String ^ controllerName, System::String ^ fragment);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent (string actionName, string controllerName, string fragment);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member RedirectToActionPermanent : string * string * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToActionPermanent : string * string * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToActionPermanent (actionName As String, controllerName As String, fragment As String) As RedirectToActionResult

Parameters

actionName
String

The name of the action.

controllerName
String

The name of the controller.

fragment
String

The fragment to add to the URL.

Returns

RedirectToActionResult

The created RedirectToActionResult for the response.

Attributes

Applies to

RedirectToActionPermanent(String, String, Object)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName, controllerName, and routeValues.

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToActionResult ^ RedirectToActionPermanent(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent (string actionName, string controllerName, object routeValues);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member RedirectToActionPermanent : string * string * obj -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToActionPermanent : string * string * obj -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToActionPermanent (actionName As String, controllerName As String, routeValues As Object) As RedirectToActionResult

Parameters

actionName
String

The name of the action.

controllerName
String

The name of the controller.

routeValues
Object

The parameters for a route.

Returns

RedirectToActionResult

The created RedirectToActionResult for the response.

Attributes

Applies to

RedirectToActionPermanent(String, String, Object, String)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName, controllerName, routeValues, and fragment.

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToActionResult ^ RedirectToActionPermanent(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, System::String ^ fragment);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent (string actionName, string controllerName, object routeValues, string fragment);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member RedirectToActionPermanent : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToActionPermanent : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToActionPermanent (actionName As String, controllerName As String, routeValues As Object, fragment As String) As RedirectToActionResult

Parameters

actionName
String

The name of the action.

controllerName
String

The name of the controller.

routeValues
Object

The parameters for a route.

fragment
String

The fragment to add to the URL.

Returns

RedirectToActionResult

The created RedirectToActionResult for the response.

Attributes

Applies to

RedirectToActionPermanent(String, Object)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName and routeValues.

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToActionResult ^ RedirectToActionPermanent(System::String ^ actionName, System::Object ^ routeValues);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent (string actionName, object routeValues);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member RedirectToActionPermanent : string * obj -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToActionPermanent : string * obj -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToActionPermanent (actionName As String, routeValues As Object) As RedirectToActionResult

Parameters

actionName
String

The name of the action.

routeValues
Object

The parameters for a route.

Returns

RedirectToActionResult

The created RedirectToActionResult for the response.

Attributes

Applies to

RedirectToActionPermanent(String)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName.

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToActionResult ^ RedirectToActionPermanent(System::String ^ actionName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent (string actionName);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member RedirectToActionPermanent : string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToActionPermanent : string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToActionPermanent (actionName As String) As RedirectToActionResult

Parameters

actionName
String

The name of the action.

Returns

RedirectToActionResult

The created RedirectToActionResult for the response.

Attributes

Applies to

RedirectToActionPermanent(String, String)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName and controllerName.

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToActionResult ^ RedirectToActionPermanent(System::String ^ actionName, System::String ^ controllerName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToActionResult RedirectToActionPermanent (string actionName, string controllerName);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member RedirectToActionPermanent : string * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
override this.RedirectToActionPermanent : string * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Overridable Function RedirectToActionPermanent (actionName As String, controllerName As String) As RedirectToActionResult

Parameters

actionName
String

The name of the action.

controllerName
String

The name of the controller.

Returns

RedirectToActionResult

The created RedirectToActionResult for the response.

Attributes

Applies to