ControllerBase.RedirectPermanentPreserveMethod(String) Metoda

Definice

Vytvoří objekt s nastavenou RedirectResult na hodnotu true a PreserveMethod nastavenou na hodnotu true (Status308PermanentRedirect) pomocí zadaného urlobjektu .Permanent

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectResult ^ RedirectPermanentPreserveMethod(System::String ^ url);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectResult RedirectPermanentPreserveMethod (string url);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member RedirectPermanentPreserveMethod : string -> Microsoft.AspNetCore.Mvc.RedirectResult
override this.RedirectPermanentPreserveMethod : string -> Microsoft.AspNetCore.Mvc.RedirectResult
Public Overridable Function RedirectPermanentPreserveMethod (url As String) As RedirectResult

Parametry

url
String

Adresa URL, na která se má přesměrovat.

Návraty

Vytvořený RedirectResult pro odpověď.

Atributy

Platí pro