Export (0) Print
Expand All

HttpStatusCodeResult Constructor (HttpStatusCode)

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

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

public HttpStatusCodeResult(
	HttpStatusCode statusCode
)

Parameters

statusCode
Type: System.Net.HttpStatusCode
The status code.

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

Show:
© 2014 Microsoft