HttpStatusCodeResult Constructor

 

Initializes a new instance of the HttpStatusCodeResult class.

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

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.

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

Return to top

HttpStatusCodeResult Constructor (HttpStatusCode)

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

No code example is currently available or this language may not be supported.

Parameters

statusCode
Type: System.Net.HttpStatusCode

The status code.

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

Return to top

HttpStatusCodeResult Constructor (HttpStatusCode, String)

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

No code example is currently available or this language may not be supported.

Parameters

statusCode
Type: System.Net.HttpStatusCode

The status code.

statusDescription
Type: System.String

The status description.

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

Return to top

HttpStatusCodeResult Constructor (Int32)

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

No code example is currently available or this language may not be supported.

Parameters

statusCode
Type: System.Int32

The status code.

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

Return to top

HttpStatusCodeResult Constructor (Int32, String)

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

No code example is currently available or this language may not be supported.

Parameters

statusCode
Type: System.Int32

The status code.

statusDescription
Type: System.String

The status description.

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

Return to top
Show: