UnauthorizedResult 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.
Represents an UnauthorizedResult that when executed will produce an Unauthorized (401) response.
public ref class UnauthorizedResult : Microsoft::AspNetCore::Mvc::StatusCodeResult
public class UnauthorizedResult : Microsoft.AspNetCore.Mvc.StatusCodeResult
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(401)]
public class UnauthorizedResult : Microsoft.AspNetCore.Mvc.StatusCodeResult
type UnauthorizedResult = class
inherit StatusCodeResult
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(401)>]
type UnauthorizedResult = class
inherit StatusCodeResult
Public Class UnauthorizedResult
Inherits StatusCodeResult
- Inheritance
- Attributes
Constructors
UnauthorizedResult() |
Creates a new UnauthorizedResult instance. |
Properties
StatusCode |
Gets the HTTP status code. (Inherited from StatusCodeResult) |
Methods
ExecuteResult(ActionContext) |
Executes the result operation of the action method synchronously. This method is called by MVC to process the result of an action method. (Inherited from StatusCodeResult) |
ExecuteResultAsync(ActionContext) |
Executes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method. The default implementation of this method calls the ExecuteResult(ActionContext) method and returns a completed task. (Inherited from ActionResult) |
Explicit Interface Implementations
IStatusCodeActionResult.StatusCode | (Inherited from StatusCodeResult) |