ControllerBase.LocalRedirectPreserveMethod(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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