HttpResponse.StatusDescription プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > HttpResponse.StatusDescription プロパティの意味・解説 

HttpResponse.StatusDescription プロパティ

クライアントへ返される出力の HTTP ステータス文字列を取得または設定します。

名前空間: System.Web
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Property StatusDescription As
 String
Dim instance As HttpResponse
Dim value As String

value = instance.StatusDescription

instance.StatusDescription = value
public string StatusDescription { get;
 set; }
public:
property String^ StatusDescription {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_StatusDescription ()

/** @property */
public void set_StatusDescription (String value)
public function get StatusDescription
 () : String

public function set StatusDescription
 (value : String)

プロパティ値
クライアントへ返される HTTP 出力のステータスを記述する文字列。既定値は "OK" です。

例外例外
例外の種類条件

HttpException

HTTP ヘッダーが送信された後に、StatusDescription が設定されています。

使用例使用例

次のコード例の ASP.NET ページでは、StreamWriter クラスを使用して、HttpResponse クラスの 3 つのプロパティである StatusCode、StatusDescription、および Charset の各プロパティの値をテキスト ファイルに書き込みます。このコードでは、まずテキスト ファイルの名前の一部とパスを含む INFO_DIR という名前の定数を作成します。次に、応答ごとに一意のファイル名を生成するために使用するカウントを作成します。続いて、要求に関する情報をファイルに書き込む StreamWriter オブジェクトを参照します。

さらに、WriteLine メソッドを呼び出し、応答が生成された時刻、プロパティ値の順でファイルに書き込みます。最後に、StreamWriter オブジェクトを閉じます。

' Set the Charset property to the
' Central European character set.
Response.Charset = "iso-8859-2"
// Set the Charset property to the
// Central European character set.        
Response.Charset = "iso-8859-2";
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

HttpResponse.StatusDescription プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



HttpResponse.StatusDescription プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS