Class SeeOtherResult
An Microsoft.AspNetCore.Mvc.ActionResult that returns a SeeOther (303) response with a Location header to the supplied URL.
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ActionResult
Microsoft.AspNetCore.Mvc.StatusCodeResult
SeeOtherResult
Implements
Microsoft.AspNetCore.Mvc.Infrastructure.IClientErrorActionResult
Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult
Microsoft.AspNetCore.Mvc.IActionResult
Inherited Members
Microsoft.AspNetCore.Mvc.StatusCodeResult.ExecuteResult(Microsoft.AspNetCore.Mvc.ActionContext)
Microsoft.AspNetCore.Mvc.StatusCodeResult.StatusCode
Microsoft.AspNetCore.Mvc.StatusCodeResult.Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult.StatusCode
Namespace: Cuemon.AspNetCore.Mvc
Assembly: Cuemon.AspNetCore.Mvc.dll
Syntax
public class SeeOtherResult : StatusCodeResult, IClientErrorActionResult, IStatusCodeActionResult, IActionResult
Constructors
| Improve this DocSeeOtherResult(Uri)
Initializes a new instance of the SeeOtherResult class.
Declaration
public SeeOtherResult(Uri location)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | location | The location of the URL to redirect to. |
Properties
| Improve this DocLocation
Gets the location of the URL to redirect to.
Declaration
public Uri Location { get; }
Property Value
Type | Description |
---|---|
System.Uri | The location of the URL to redirect to. |
Methods
| Improve this DocExecuteResultAsync(ActionContext)
Executes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method.
Declaration
public override Task ExecuteResultAsync(ActionContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.ActionContext | context | The context in which the result is executed. The context information includes information about the action that was executed and request information. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task that represents the asynchronous execute operation. |
Overrides
Microsoft.AspNetCore.Mvc.ActionResult.ExecuteResultAsync(Microsoft.AspNetCore.Mvc.ActionContext)
Implements
Microsoft.AspNetCore.Mvc.Infrastructure.IClientErrorActionResult
Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult
Microsoft.AspNetCore.Mvc.IActionResult