PageModel.LocalRedirect(String) Methode

Definition

Erstellt ein LocalRedirectResult -Objekt, das (Status302Found) an den angegebenen lokalen localUrlumleitet.

public:
 virtual Microsoft::AspNetCore::Mvc::LocalRedirectResult ^ LocalRedirect(System::String ^ localUrl);
public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirect (string localUrl);
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 .

Gilt für: