RedirectToRouteResult Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RedirectToRouteResult(Object) |
Initializes a new instance of the RedirectToRouteResult with the values provided. |
RedirectToRouteResult(String, Object) |
Initializes a new instance of the RedirectToRouteResult with the values provided. |
RedirectToRouteResult(String, Object, Boolean) |
Initializes a new instance of the RedirectToRouteResult with the values provided. |
RedirectToRouteResult(String, Object, String) |
Initializes a new instance of the RedirectToRouteResult with the values provided. |
RedirectToRouteResult(String, Object, Boolean, Boolean) |
Initializes a new instance of the RedirectToRouteResult with the values provided. |
RedirectToRouteResult(String, Object, Boolean, String) |
Initializes a new instance of the RedirectToRouteResult with the values provided. |
RedirectToRouteResult(String, Object, Boolean, Boolean, String) |
Initializes a new instance of the RedirectToRouteResult with the values provided. |
RedirectToRouteResult(Object)
- Source:
- RedirectToRouteResult.cs
- Source:
- RedirectToRouteResult.cs
- Source:
- RedirectToRouteResult.cs
Initializes a new instance of the RedirectToRouteResult with the values provided.
public:
RedirectToRouteResult(System::Object ^ routeValues);
public RedirectToRouteResult (object routeValues);
public RedirectToRouteResult (object? routeValues);
new Microsoft.AspNetCore.Mvc.RedirectToRouteResult : obj -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Sub New (routeValues As Object)
Parameters
- routeValues
- Object
The parameters for the route.
Applies to
RedirectToRouteResult(String, Object)
- Source:
- RedirectToRouteResult.cs
- Source:
- RedirectToRouteResult.cs
- Source:
- RedirectToRouteResult.cs
Initializes a new instance of the RedirectToRouteResult with the values provided.
public:
RedirectToRouteResult(System::String ^ routeName, System::Object ^ routeValues);
public RedirectToRouteResult (string routeName, object routeValues);
public RedirectToRouteResult (string? routeName, object? routeValues);
new Microsoft.AspNetCore.Mvc.RedirectToRouteResult : string * obj -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Sub New (routeName As String, routeValues As Object)
Parameters
- routeName
- String
The name of the route.
- routeValues
- Object
The parameters for the route.
Applies to
RedirectToRouteResult(String, Object, Boolean)
- Source:
- RedirectToRouteResult.cs
- Source:
- RedirectToRouteResult.cs
- Source:
- RedirectToRouteResult.cs
Initializes a new instance of the RedirectToRouteResult with the values provided.
public:
RedirectToRouteResult(System::String ^ routeName, System::Object ^ routeValues, bool permanent);
public RedirectToRouteResult (string routeName, object routeValues, bool permanent);
public RedirectToRouteResult (string? routeName, object? routeValues, bool permanent);
new Microsoft.AspNetCore.Mvc.RedirectToRouteResult : string * obj * bool -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Sub New (routeName As String, routeValues As Object, permanent As Boolean)
Parameters
- routeName
- String
The name of the route.
- routeValues
- Object
The parameters for the route.
- permanent
- Boolean
If set to true, makes the redirect permanent (301). Otherwise a temporary redirect is used (302).
Applies to
RedirectToRouteResult(String, Object, String)
- Source:
- RedirectToRouteResult.cs
- Source:
- RedirectToRouteResult.cs
- Source:
- RedirectToRouteResult.cs
Initializes a new instance of the RedirectToRouteResult with the values provided.
public:
RedirectToRouteResult(System::String ^ routeName, System::Object ^ routeValues, System::String ^ fragment);
public RedirectToRouteResult (string routeName, object routeValues, string fragment);
public RedirectToRouteResult (string? routeName, object? routeValues, string? fragment);
new Microsoft.AspNetCore.Mvc.RedirectToRouteResult : string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Sub New (routeName As String, routeValues As Object, fragment As String)
Parameters
- routeName
- String
The name of the route.
- routeValues
- Object
The parameters for the route.
- fragment
- String
The fragment to add to the URL.
Applies to
RedirectToRouteResult(String, Object, Boolean, Boolean)
- Source:
- RedirectToRouteResult.cs
- Source:
- RedirectToRouteResult.cs
- Source:
- RedirectToRouteResult.cs
Initializes a new instance of the RedirectToRouteResult with the values provided.
public:
RedirectToRouteResult(System::String ^ routeName, System::Object ^ routeValues, bool permanent, bool preserveMethod);
public RedirectToRouteResult (string routeName, object routeValues, bool permanent, bool preserveMethod);
public RedirectToRouteResult (string? routeName, object? routeValues, bool permanent, bool preserveMethod);
new Microsoft.AspNetCore.Mvc.RedirectToRouteResult : string * obj * bool * bool -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Sub New (routeName As String, routeValues As Object, permanent As Boolean, preserveMethod As Boolean)
Parameters
- routeName
- String
The name of the route.
- routeValues
- Object
The parameters for the route.
- 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
RedirectToRouteResult(String, Object, Boolean, String)
- Source:
- RedirectToRouteResult.cs
- Source:
- RedirectToRouteResult.cs
- Source:
- RedirectToRouteResult.cs
Initializes a new instance of the RedirectToRouteResult with the values provided.
public:
RedirectToRouteResult(System::String ^ routeName, System::Object ^ routeValues, bool permanent, System::String ^ fragment);
public RedirectToRouteResult (string routeName, object routeValues, bool permanent, string fragment);
public RedirectToRouteResult (string? routeName, object? routeValues, bool permanent, string? fragment);
new Microsoft.AspNetCore.Mvc.RedirectToRouteResult : string * obj * bool * string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Sub New (routeName As String, routeValues As Object, permanent As Boolean, fragment As String)
Parameters
- routeName
- String
The name of the route.
- routeValues
- Object
The parameters for the route.
- 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
RedirectToRouteResult(String, Object, Boolean, Boolean, String)
- Source:
- RedirectToRouteResult.cs
- Source:
- RedirectToRouteResult.cs
- Source:
- RedirectToRouteResult.cs
Initializes a new instance of the RedirectToRouteResult with the values provided.
public:
RedirectToRouteResult(System::String ^ routeName, System::Object ^ routeValues, bool permanent, bool preserveMethod, System::String ^ fragment);
public RedirectToRouteResult (string routeName, object routeValues, bool permanent, bool preserveMethod, string fragment);
public RedirectToRouteResult (string? routeName, object? routeValues, bool permanent, bool preserveMethod, string? fragment);
new Microsoft.AspNetCore.Mvc.RedirectToRouteResult : string * obj * bool * bool * string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Sub New (routeName As String, routeValues As Object, permanent As Boolean, preserveMethod As Boolean, fragment As String)
Parameters
- routeName
- String
The name of the route.
- routeValues
- Object
The parameters for the route.
- 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.
- fragment
- String
The fragment to add to the URL.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for