RedirectHttpResult Class
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.
An IResult that returns a Found (302), Moved Permanently (301), Temporary Redirect (307), or Permanent Redirect (308) response with a Location header to the supplied URL.
public sealed class RedirectHttpResult : Microsoft.AspNetCore.Http.IResult
type RedirectHttpResult = class
interface IResult
Public NotInheritable Class RedirectHttpResult
Implements IResult
- Inheritance
-
RedirectHttpResult
- Implements
Properties
AcceptLocalUrlOnly |
Gets an indication that only local URLs are accepted. |
Permanent |
Gets the value that specifies that the redirect should be permanent if true or temporary if false. |
PreserveMethod |
Gets an indication that the redirect preserves the initial request method. |
Url |
Gets the URL to redirect to. |
Methods
ExecuteAsync(HttpContext) |
Write an HTTP response reflecting the result. |