HttpStatusCodeResult Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HttpStatusCodeResult(Int32) |
Initializes a new instance of the HttpStatusCodeResult class using a status code. |
HttpStatusCodeResult(HttpStatusCode) |
Initializes a new instance of the HttpStatusCodeResult class using a status code. |
HttpStatusCodeResult(Int32, String) |
Initializes a new instance of the HttpStatusCodeResult class using a status code and status description. |
HttpStatusCodeResult(HttpStatusCode, String) |
Initializes a new instance of the HttpStatusCodeResult class using a status code and status description. |
HttpStatusCodeResult(Int32)
Initializes a new instance of the HttpStatusCodeResult class using a status code.
public HttpStatusCodeResult (int statusCode);
new System.Web.Mvc.HttpStatusCodeResult : int -> System.Web.Mvc.HttpStatusCodeResult
Public Sub New (statusCode As Integer)
Parameters
- statusCode
- Int32
The status code.
Applies to
HttpStatusCodeResult(HttpStatusCode)
Initializes a new instance of the HttpStatusCodeResult class using a status code.
public HttpStatusCodeResult (System.Net.HttpStatusCode statusCode);
new System.Web.Mvc.HttpStatusCodeResult : System.Net.HttpStatusCode -> System.Web.Mvc.HttpStatusCodeResult
Public Sub New (statusCode As HttpStatusCode)
Parameters
- statusCode
- HttpStatusCode
The status code.
Applies to
HttpStatusCodeResult(Int32, String)
Initializes a new instance of the HttpStatusCodeResult class using a status code and status description.
public HttpStatusCodeResult (int statusCode, string statusDescription);
new System.Web.Mvc.HttpStatusCodeResult : int * string -> System.Web.Mvc.HttpStatusCodeResult
Public Sub New (statusCode As Integer, statusDescription As String)
Parameters
- statusCode
- Int32
The status code.
- statusDescription
- String
The status description.
Applies to
HttpStatusCodeResult(HttpStatusCode, String)
Initializes a new instance of the HttpStatusCodeResult class using a status code and status description.
public HttpStatusCodeResult (System.Net.HttpStatusCode statusCode, string statusDescription);
new System.Web.Mvc.HttpStatusCodeResult : System.Net.HttpStatusCode * string -> System.Web.Mvc.HttpStatusCodeResult
Public Sub New (statusCode As HttpStatusCode, statusDescription As String)
Parameters
- statusCode
- HttpStatusCode
The status code.
- statusDescription
- String
The status description.