Share via


HttpUnauthorizedResult Class

Definition

Represents the result of an unauthorized HTTP request.

public class HttpUnauthorizedResult : System.Web.Mvc.HttpStatusCodeResult
type HttpUnauthorizedResult = class
    inherit HttpStatusCodeResult
Public Class HttpUnauthorizedResult
Inherits HttpStatusCodeResult
Inheritance
HttpUnauthorizedResult

Constructors

HttpUnauthorizedResult()

Initializes a new instance of the HttpUnauthorizedResult class.

HttpUnauthorizedResult(String)

Initializes a new instance of the HttpUnauthorizedResult class using the status description.

Properties

StatusCode

Gets the HTTP status code.

(Inherited from HttpStatusCodeResult)
StatusDescription

Gets the HTTP status description.

(Inherited from HttpStatusCodeResult)

Methods

ExecuteResult(ControllerContext)

Enables processing of the result of an action method by a custom type that inherits from the ActionResult class.

(Inherited from HttpStatusCodeResult)

Applies to