PageModel.LocalRedirectPreserveMethod(String) 方法

定义

使用指定的 localUrl创建一个LocalRedirectResult对象,该Permanent对象将 设置为 false,PreserveMethod (Status307TemporaryRedirect) 。

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

适用于