Share via


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)

Syntax

'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)
public HttpStatusCodeResult(
    int statusCode,
    string statusDescription
)
public:
HttpStatusCodeResult(
    int statusCode, 
    String^ statusDescription
)
public function HttpStatusCodeResult(
    statusCode : int, 
    statusDescription : String
)

Parameters

Remarks

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

See Also

Reference

HttpStatusCodeResult Class

HttpStatusCodeResult Overload

System.Web.Mvc Namespace