次の方法で共有


HttpException コンストラクタ (Int32, String)

HTTP 応答ステータス コードとエラー メッセージを使用して、HttpException クラスの新しいインスタンスを初期化します。

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

構文

'宣言
Public Sub New ( _
    httpCode As Integer, _
    message As String _
)
'使用
Dim httpCode As Integer
Dim message As String

Dim instance As New HttpException(httpCode, message)
public HttpException (
    int httpCode,
    string message
)
public:
HttpException (
    int httpCode, 
    String^ message
)
public HttpException (
    int httpCode, 
    String message
)
public function HttpException (
    httpCode : int, 
    message : String
)
適用できません。

パラメータ

  • httpCode
    エラーに対応するクライアントに送信された HTTP 応答ステータス コード。
  • message
    例外がスローされたときに、クライアントに表示するエラー メッセージ。

プラットフォーム

Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition

Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。

バージョン情報

.NET Framework

サポート対象 : 3.0,2.0,1.1,1.0

参照

関連項目

HttpException クラス
HttpException メンバ
System.Web 名前空間
InnerException