次の方法で共有


ResponseExtensions.SetStatus メソッド

定義

オーバーロード

SetStatus(HttpResponseBase, Int32)

指定された整数値を使用して、HTTP 応答の HTTP ステータス コードを設定します。

SetStatus(HttpResponseBase, HttpStatusCode)

指定された HTTP ステータス コード列挙値を使用して、HTTP 応答の HTTP ステータス コードを設定します。

SetStatus(HttpResponseBase, Int32)

指定された整数値を使用して、HTTP 応答の HTTP ステータス コードを設定します。

public static void SetStatus(this System.Web.HttpResponseBase response, int httpStatusCode);
static member SetStatus : System.Web.HttpResponseBase * int -> unit
<Extension()>
Public Sub SetStatus (response As HttpResponseBase, httpStatusCode As Integer)

パラメーター

response
HttpResponseBase

HTTP 応答インスタンス。

httpStatusCode
Int32

HTTP 状態コード。

適用対象

SetStatus(HttpResponseBase, HttpStatusCode)

指定された HTTP ステータス コード列挙値を使用して、HTTP 応答の HTTP ステータス コードを設定します。

public static void SetStatus(this System.Web.HttpResponseBase response, System.Net.HttpStatusCode httpStatusCode);
static member SetStatus : System.Web.HttpResponseBase * System.Net.HttpStatusCode -> unit
<Extension()>
Public Sub SetStatus (response As HttpResponseBase, httpStatusCode As HttpStatusCode)

パラメーター

response
HttpResponseBase

HTTP 応答インスタンス。

httpStatusCode
HttpStatusCode

HTTP 状態コード

適用対象