Export (0) Print
Expand All

HttpStatusCodeResult Constructor (Int32, String)

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

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

'Declaration
Public Sub New ( _
	statusCode As Integer, _
	statusDescription As String _
)
'Usage
Dim statusCode As Integer
Dim statusDescription As String

Dim instance As New HttpStatusCodeResult(statusCode, _
	statusDescription)

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.

Show:
© 2015 Microsoft