HttpStatusCodeResult Class

 

Provides a way to return an action result with a specific HTTP response status code and description.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)


Public Class HttpStatusCodeResult
	Inherits ActionResult

NameDescription
System_CAPS_pubmethodHttpStatusCodeResult(HttpStatusCode)

Initializes a new instance of the HttpStatusCodeResult class using a status code.

System_CAPS_pubmethodHttpStatusCodeResult(HttpStatusCode, String)

Initializes a new instance of the HttpStatusCodeResult class using a status code and status description.

System_CAPS_pubmethodHttpStatusCodeResult(Int32)

Initializes a new instance of the HttpStatusCodeResult class using a status code.

System_CAPS_pubmethodHttpStatusCodeResult(Int32, String)

Initializes a new instance of the HttpStatusCodeResult class using a status code and status description.

NameDescription
System_CAPS_pubpropertyStatusCode

Gets the HTTP status code.

System_CAPS_pubpropertyStatusDescription

Gets the HTTP status description.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExecuteResult(ControllerContext)

Enables processing of the result of an action method by a custom type that inherits from the ActionResult class.(Overrides ActionResult.ExecuteResult(ControllerContext).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

A Visual Studio project with source code is available to accompany this topic: Download.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: