UnauthorizedHttpResult Class

Definition

Represents an IResult that when executed will produce an HTTP response with the No Unauthorized (401) status code.

public sealed class UnauthorizedHttpResult : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult
type UnauthorizedHttpResult = class
    interface IResult
    interface IStatusCodeHttpResult
Public NotInheritable Class UnauthorizedHttpResult
Implements IResult, IStatusCodeHttpResult
Inheritance
UnauthorizedHttpResult
Implements

Properties

StatusCode

Gets the HTTP status code: Status401Unauthorized

Methods

ExecuteAsync(HttpContext)

Write an HTTP response reflecting the result.

Explicit Interface Implementations

IStatusCodeHttpResult.StatusCode

Applies to