ControllerBase.LocalRedirectPermanentPreserveMethod(String) Methode

Definition

Erstellt mithilfe des angegebenen ein LocalRedirectResult -Objekt, das Permanent auf true und PreserveMethod auf true (Status308PermanentRedirect) festgelegt localUrlist.

public:
 virtual Microsoft::AspNetCore::Mvc::LocalRedirectResult ^ LocalRedirectPermanentPreserveMethod(System::String ^ localUrl);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPermanentPreserveMethod (string localUrl);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member LocalRedirectPermanentPreserveMethod : string -> Microsoft.AspNetCore.Mvc.LocalRedirectResult
override this.LocalRedirectPermanentPreserveMethod : string -> Microsoft.AspNetCore.Mvc.LocalRedirectResult
Public Overridable Function LocalRedirectPermanentPreserveMethod (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: