PageModel.LocalRedirectPreserveMethod(String) 方法

定义

LocalRedirectResult Permanent 使用指定的创建一个设置为 false 且 PreserveMethod 设置为 true () 的对象 Status307TemporaryRedirect localUrl

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

参数

localUrl
String

要重定向到的本地 URL。

返回

LocalRedirectResult

LocalRedirectResult为响应创建的。

适用于