HttpStatusCodeResult 构造函数

定义

重载

HttpStatusCodeResult(Int32)

使用状态代码初始化 类的新实例 HttpStatusCodeResult

HttpStatusCodeResult(HttpStatusCode)

使用状态代码初始化 类的新实例 HttpStatusCodeResult

HttpStatusCodeResult(Int32, String)

使用状态代码和状态说明初始化 类的新实例 HttpStatusCodeResult

HttpStatusCodeResult(HttpStatusCode, String)

使用状态代码和状态说明初始化 类的新实例 HttpStatusCodeResult

HttpStatusCodeResult(Int32)

使用状态代码初始化 类的新实例 HttpStatusCodeResult

public HttpStatusCodeResult (int statusCode);
new System.Web.Mvc.HttpStatusCodeResult : int -> System.Web.Mvc.HttpStatusCodeResult
Public Sub New (statusCode As Integer)

参数

statusCode
Int32

状态代码。

适用于

HttpStatusCodeResult(HttpStatusCode)

使用状态代码初始化 类的新实例 HttpStatusCodeResult

public HttpStatusCodeResult (System.Net.HttpStatusCode statusCode);
new System.Web.Mvc.HttpStatusCodeResult : System.Net.HttpStatusCode -> System.Web.Mvc.HttpStatusCodeResult
Public Sub New (statusCode As HttpStatusCode)

参数

statusCode
HttpStatusCode

状态代码。

适用于

HttpStatusCodeResult(Int32, String)

使用状态代码和状态说明初始化 类的新实例 HttpStatusCodeResult

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)

参数

statusCode
Int32

状态代码。

statusDescription
String

状态说明。

适用于

HttpStatusCodeResult(HttpStatusCode, String)

使用状态代码和状态说明初始化 类的新实例 HttpStatusCodeResult

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)

参数

statusCode
HttpStatusCode

状态代码。

statusDescription
String

状态说明。

适用于