PageModel.RedirectToRoute Metoda

Definicja

Przeciążenia

RedirectToRoute(Object)

Przekierowuje ( Status302Found ) do określonej trasy przy użyciu określonego routeValues .

RedirectToRoute(String)

Przekierowuje ( Status302Found ) do określonej trasy przy użyciu określonego routeName .

RedirectToRoute(String, Object)

Przekierowuje ( Status302Found ) do określonej trasy przy użyciu określonych routeName i routeValues .

RedirectToRoute(String, String)

Przekierowuje ( Status302Found ) do określonej trasy przy użyciu określonych routeName i fragment .

RedirectToRoute(String, Object, String)

Przekierowuje ( Status302Found ) do określonej trasy przy użyciu określonych routeName , i routeValues fragment .

RedirectToRoute(Object)

Przekierowuje ( Status302Found ) do określonej trasy przy użyciu określonego routeValues .

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToRouteResult ^ RedirectToRoute(System::Object ^ routeValues);
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute (object routeValues);
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute (object? routeValues);
abstract member RedirectToRoute : obj -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
override this.RedirectToRoute : obj -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Overridable Function RedirectToRoute (routeValues As Object) As RedirectToRouteResult

Parametry

routeValues
Object

Parametry trasy.

Zwraca

RedirectToRouteResult

Utworzony RedirectToRouteResult dla odpowiedzi.

Dotyczy

RedirectToRoute(String)

Przekierowuje ( Status302Found ) do określonej trasy przy użyciu określonego routeName .

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToRouteResult ^ RedirectToRoute(System::String ^ routeName);
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute (string routeName);
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute (string? routeName);
abstract member RedirectToRoute : string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
override this.RedirectToRoute : string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Overridable Function RedirectToRoute (routeName As String) As RedirectToRouteResult

Parametry

routeName
String

Nazwa trasy.

Zwraca

RedirectToRouteResult

Utworzony RedirectToRouteResult dla odpowiedzi.

Dotyczy

RedirectToRoute(String, Object)

Przekierowuje ( Status302Found ) do określonej trasy przy użyciu określonych routeName i routeValues .

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToRouteResult ^ RedirectToRoute(System::String ^ routeName, System::Object ^ routeValues);
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute (string routeName, object routeValues);
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute (string? routeName, object? routeValues);
abstract member RedirectToRoute : string * obj -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
override this.RedirectToRoute : string * obj -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Overridable Function RedirectToRoute (routeName As String, routeValues As Object) As RedirectToRouteResult

Parametry

routeName
String

Nazwa trasy.

routeValues
Object

Parametry trasy.

Zwraca

RedirectToRouteResult

Utworzony RedirectToRouteResult dla odpowiedzi.

Dotyczy

RedirectToRoute(String, String)

Przekierowuje ( Status302Found ) do określonej trasy przy użyciu określonych routeName i fragment .

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToRouteResult ^ RedirectToRoute(System::String ^ routeName, System::String ^ fragment);
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute (string routeName, string fragment);
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute (string? routeName, string? fragment);
abstract member RedirectToRoute : string * string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
override this.RedirectToRoute : string * string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Overridable Function RedirectToRoute (routeName As String, fragment As String) As RedirectToRouteResult

Parametry

routeName
String

Nazwa trasy.

fragment
String

Fragment do dodania do adresu URL.

Zwraca

RedirectToRouteResult

Utworzony RedirectToRouteResult dla odpowiedzi.

Dotyczy

RedirectToRoute(String, Object, String)

Przekierowuje ( Status302Found ) do określonej trasy przy użyciu określonych routeName , i routeValues fragment .

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToRouteResult ^ RedirectToRoute(System::String ^ routeName, System::Object ^ routeValues, System::String ^ fragment);
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute (string routeName, object routeValues, string fragment);
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoute (string? routeName, object? routeValues, string? fragment);
abstract member RedirectToRoute : string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
override this.RedirectToRoute : string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Overridable Function RedirectToRoute (routeName As String, routeValues As Object, fragment As String) As RedirectToRouteResult

Parametry

routeName
String

Nazwa trasy.

routeValues
Object

Parametry trasy.

fragment
String

Fragment do dodania do adresu URL.

Zwraca

RedirectToRouteResult

Utworzony RedirectToRouteResult dla odpowiedzi.

Dotyczy