ControllerBase.LocalRedirect(String) Methode

Definition

Erstellt ein LocalRedirectResult -Objekt, das (Status302Found) an die angegebene lokale localUrlumleitet.

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

Parameter

localUrl
String

Die lokale URL, an die umgeleitet werden soll.

Gibt zurück

Die für die Antwort erstellte LocalRedirectResult .

Attribute

Gilt für: