Partager via


ControllerBase.LocalRedirect(String) Méthode

Définition

Crée un LocalRedirectResult objet qui redirige (Status302Found) vers le local localUrlspécifié.

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

Paramètres

localUrl
String

URL locale vers laquelle rediriger.

Retours

créé LocalRedirectResult pour la réponse.

Attributs

S’applique à