PageModel.LocalRedirectPermanentPreserveMethod(String) Metoda

Definicja

Tworzy obiekt z ustawioną wartością LocalRedirectResultPermanent true i PreserveMethod ustawia wartość true (Status308PermanentRedirect) przy użyciu określonego localUrlobiektu .

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

Parametry

localUrl
String

Lokalny adres URL do przekierowania.

Zwraca

LocalRedirectResult Utworzony dla odpowiedzi.

Dotyczy