Share via


ControllerBase.LocalRedirectPreserveMethod(String) Method

Definition

Creates a LocalRedirectResult object with Permanent set to false and PreserveMethod set to true (Status307TemporaryRedirect) using the specified localUrl.

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

Parameters

localUrl
String

The local URL to redirect to.

Returns

The created LocalRedirectResult for the response.

Attributes

Applies to