Compartir a través de


ControllerBase.LocalRedirect(String) Método

Definición

Crea un LocalRedirectResult objeto que redirige (Status302Found) al local localUrlespecificado.

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

Parámetros

localUrl
String

Dirección URL local a la que se va a redirigir.

Devoluciones

creado LocalRedirectResult para la respuesta.

Atributos

Se aplica a