PageModel.LocalRedirectPermanentPreserveMethod(String) 方法

定义

LocalRedirectResult Permanent 使用指定的创建一个设置为 true 的对象,并 PreserveMethod 将其设置为 true (Status308PermanentRedirect) localUrl

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

参数

localUrl
String

要重定向到的本地 URL。

返回

LocalRedirectResult

LocalRedirectResult为响应创建的。

适用于