ControllerBase.LocalRedirectPreserveMethod(String) Methode

Definition

Erstellt ein LocalRedirectResult -Objekt, das Permanent auf false und PreserveMethod mit dem angegebenen localUrlauf true (Status307TemporaryRedirect) festgelegt ist.

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