HttpResponseBase.RedirectToRoute Method
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.
Redirects the request to a new URL by using route parameter values, a route name, or both.
Overloads
RedirectToRoute(Object) |
Redirects the request to a new URL by using route parameter values. |
RedirectToRoute(String) |
Redirects the request to a new URL by using a route name. |
RedirectToRoute(RouteValueDictionary) |
Redirects the request to a new URL by using route parameter values. |
RedirectToRoute(String, Object) |
Redirects the request to a new URL by using route parameter values and a route name. |
RedirectToRoute(String, RouteValueDictionary) |
Redirects the request to a new URL by using route parameter values and a route name. |
RedirectToRoute(Object)
Redirects the request to a new URL by using route parameter values.
public:
virtual void RedirectToRoute(System::Object ^ routeValues);
public virtual void RedirectToRoute (object routeValues);
abstract member RedirectToRoute : obj -> unit
override this.RedirectToRoute : obj -> unit
Public Overridable Sub RedirectToRoute (routeValues As Object)
Parameters
- routeValues
- Object
The route parameter values.
Exceptions
Always.
Remarks
For information about this member, see HttpResponse.RedirectToRoute(Object).
Applies to
RedirectToRoute(String)
Redirects the request to a new URL by using a route name.
public:
virtual void RedirectToRoute(System::String ^ routeName);
public virtual void RedirectToRoute (string routeName);
abstract member RedirectToRoute : string -> unit
override this.RedirectToRoute : string -> unit
Public Overridable Sub RedirectToRoute (routeName As String)
Parameters
- routeName
- String
The name of the route.
Exceptions
Always.
Remarks
For information about this member, see HttpResponse.RedirectToRoute(String).
Applies to
RedirectToRoute(RouteValueDictionary)
Redirects the request to a new URL by using route parameter values.
public:
virtual void RedirectToRoute(System::Web::Routing::RouteValueDictionary ^ routeValues);
public virtual void RedirectToRoute (System.Web.Routing.RouteValueDictionary routeValues);
abstract member RedirectToRoute : System.Web.Routing.RouteValueDictionary -> unit
override this.RedirectToRoute : System.Web.Routing.RouteValueDictionary -> unit
Public Overridable Sub RedirectToRoute (routeValues As RouteValueDictionary)
Parameters
- routeValues
- RouteValueDictionary
The route parameter values.
Exceptions
Always.
Remarks
For information about this member, see HttpResponse.RedirectToRoute(RouteValueDictionary).
Applies to
RedirectToRoute(String, Object)
Redirects the request to a new URL by using route parameter values and a route name.
public:
virtual void RedirectToRoute(System::String ^ routeName, System::Object ^ routeValues);
public virtual void RedirectToRoute (string routeName, object routeValues);
abstract member RedirectToRoute : string * obj -> unit
override this.RedirectToRoute : string * obj -> unit
Public Overridable Sub RedirectToRoute (routeName As String, routeValues As Object)
Parameters
- routeName
- String
The name of the route.
- routeValues
- Object
The route parameter values.
Exceptions
Always.
Remarks
For information about this member, see HttpResponse.RedirectToRoute(String, Object).
Applies to
RedirectToRoute(String, RouteValueDictionary)
Redirects the request to a new URL by using route parameter values and a route name.
public:
virtual void RedirectToRoute(System::String ^ routeName, System::Web::Routing::RouteValueDictionary ^ routeValues);
public virtual void RedirectToRoute (string routeName, System.Web.Routing.RouteValueDictionary routeValues);
abstract member RedirectToRoute : string * System.Web.Routing.RouteValueDictionary -> unit
override this.RedirectToRoute : string * System.Web.Routing.RouteValueDictionary -> unit
Public Overridable Sub RedirectToRoute (routeName As String, routeValues As RouteValueDictionary)
Parameters
- routeName
- String
The name of the route.
- routeValues
- RouteValueDictionary
The route parameter values.
Exceptions
Always.
Remarks
For information about this member, see HttpResponse.RedirectToRoute(String, RouteValueDictionary).
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기