RedirectToActionResult Constructors

Definition

Overloads

RedirectToActionResult(String, String, Object)

Initializes a new instance of the RedirectToActionResult with the values provided.

RedirectToActionResult(String, String, Object, Boolean)

Initializes a new instance of the RedirectToActionResult with the values provided.

RedirectToActionResult(String, String, Object, String)

Initializes a new instance of the RedirectToActionResult with the values provided.

RedirectToActionResult(String, String, Object, Boolean, Boolean)

Initializes a new instance of the RedirectToActionResult with the values provided.

RedirectToActionResult(String, String, Object, Boolean, String)

Initializes a new instance of the RedirectToActionResult with the values provided.

RedirectToActionResult(String, String, Object, Boolean, Boolean, String)

Initializes a new instance of the RedirectToActionResult with the values provided.

RedirectToActionResult(String, String, Object)

Source:
RedirectToActionResult.cs
Source:
RedirectToActionResult.cs

Initializes a new instance of the RedirectToActionResult with the values provided.

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues);
public RedirectToActionResult (string actionName, string controllerName, object routeValues);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object)

Parameters

actionName
String

The name of the action to use for generating the URL.

controllerName
String

The name of the controller to use for generating the URL.

routeValues
Object

The route data to use for generating the URL.

Applies to

RedirectToActionResult(String, String, Object, Boolean)

Source:
RedirectToActionResult.cs
Source:
RedirectToActionResult.cs

Initializes a new instance of the RedirectToActionResult with the values provided.

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, bool permanent);
public RedirectToActionResult (string actionName, string controllerName, object routeValues, bool permanent);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues, bool permanent);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj * bool -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, permanent As Boolean)

Parameters

actionName
String

The name of the action to use for generating the URL.

controllerName
String

The name of the controller to use for generating the URL.

routeValues
Object

The route data to use for generating the URL.

permanent
Boolean

If set to true, makes the redirect permanent (301). Otherwise a temporary redirect is used (302).

Applies to

RedirectToActionResult(String, String, Object, String)

Source:
RedirectToActionResult.cs
Source:
RedirectToActionResult.cs

Initializes a new instance of the RedirectToActionResult with the values provided.

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, System::String ^ fragment);
public RedirectToActionResult (string actionName, string controllerName, object routeValues, string fragment);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues, string? fragment);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, fragment As String)

Parameters

actionName
String

The name of the action to use for generating the URL.

controllerName
String

The name of the controller to use for generating the URL.

routeValues
Object

The route data to use for generating the URL.

fragment
String

The fragment to add to the URL.

Applies to

RedirectToActionResult(String, String, Object, Boolean, Boolean)

Source:
RedirectToActionResult.cs
Source:
RedirectToActionResult.cs

Initializes a new instance of the RedirectToActionResult with the values provided.

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, bool permanent, bool preserveMethod);
public RedirectToActionResult (string actionName, string controllerName, object routeValues, bool permanent, bool preserveMethod);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues, bool permanent, bool preserveMethod);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj * bool * bool -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, permanent As Boolean, preserveMethod As Boolean)

Parameters

actionName
String

The name of the action to use for generating the URL.

controllerName
String

The name of the controller to use for generating the URL.

routeValues
Object

The route data to use for generating the URL.

permanent
Boolean

If set to true, makes the redirect permanent (301). Otherwise a temporary redirect is used (302).

preserveMethod
Boolean

If set to true, make the temporary redirect (307) or permanent redirect (308) preserve the initial request method.

Applies to

RedirectToActionResult(String, String, Object, Boolean, String)

Source:
RedirectToActionResult.cs
Source:
RedirectToActionResult.cs

Initializes a new instance of the RedirectToActionResult with the values provided.

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, bool permanent, System::String ^ fragment);
public RedirectToActionResult (string actionName, string controllerName, object routeValues, bool permanent, string fragment);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues, bool permanent, string? fragment);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj * bool * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, permanent As Boolean, fragment As String)

Parameters

actionName
String

The name of the action to use for generating the URL.

controllerName
String

The name of the controller to use for generating the URL.

routeValues
Object

The route data to use for generating the URL.

permanent
Boolean

If set to true, makes the redirect permanent (301). Otherwise a temporary redirect is used (302).

fragment
String

The fragment to add to the URL.

Applies to

RedirectToActionResult(String, String, Object, Boolean, Boolean, String)

Source:
RedirectToActionResult.cs
Source:
RedirectToActionResult.cs

Initializes a new instance of the RedirectToActionResult with the values provided.

public:
 RedirectToActionResult(System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, bool permanent, bool preserveMethod, System::String ^ fragment);
public RedirectToActionResult (string actionName, string controllerName, object routeValues, bool permanent, bool preserveMethod, string fragment);
public RedirectToActionResult (string? actionName, string? controllerName, object? routeValues, bool permanent, bool preserveMethod, string? fragment);
new Microsoft.AspNetCore.Mvc.RedirectToActionResult : string * string * obj * bool * bool * string -> Microsoft.AspNetCore.Mvc.RedirectToActionResult
Public Sub New (actionName As String, controllerName As String, routeValues As Object, permanent As Boolean, preserveMethod As Boolean, fragment As String)

Parameters

actionName
String

The name of the action to use for generating the URL.

controllerName
String

The name of the controller to use for generating the URL.

routeValues
Object

The route data to use for generating the URL.

permanent
Boolean

If set to true, makes the redirect permanent (301). Otherwise a temporary redirect is used (302).

preserveMethod
Boolean

If set to true, make the temporary redirect (307) and permanent redirect (308) preserve the initial request method.

fragment
String

The fragment to add to the URL.

Applies to