PageModel.LocalRedirectPermanent(String) Metoda

Definicja

LocalRedirectResult Tworzy obiekt z ustawioną wartością Permanent true (Status301MovedPermanently) przy użyciu określonego localUrlobiektu .

public:
 virtual Microsoft::AspNetCore::Mvc::LocalRedirectResult ^ LocalRedirectPermanent(System::String ^ localUrl);
public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirectPermanent (string localUrl);
abstract member LocalRedirectPermanent : string -> Microsoft.AspNetCore.Mvc.LocalRedirectResult
override this.LocalRedirectPermanent : string -> Microsoft.AspNetCore.Mvc.LocalRedirectResult
Public Overridable Function LocalRedirectPermanent (localUrl As String) As LocalRedirectResult

Parametry

localUrl
String

Lokalny adres URL do przekierowania.

Zwraca

LocalRedirectResult Utworzono odpowiedź.

Dotyczy