UnauthorizedResult Class

Represents an Microsoft.AspNetCore.Mvc.UnauthorizedResult that when executed will produce an Unauthorized (401) response.

Namespace
Microsoft.AspNetCore.Mvc
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

public class UnauthorizedResult : StatusCodeResult, IActionResult
class Microsoft.AspNetCore.Mvc.UnauthorizedResult

Constructors

UnauthorizedResult()

Creates a new Microsoft.AspNetCore.Mvc.UnauthorizedResult instance.

public UnauthorizedResult()