HttpException.CreateFromLastError(String) 方法

定義

根據從 Windows API 回傳的錯誤碼建立新的 HttpException 例外GetLastError()方法。

public:
 static System::Web::HttpException ^ CreateFromLastError(System::String ^ message);
public static System.Web.HttpException CreateFromLastError(string message);
static member CreateFromLastError : string -> System.Web.HttpException
Public Shared Function CreateFromLastError (message As String) As HttpException

參數

message
String

當異常被拋出時,錯誤訊息會顯示給客戶端。

傳回

基於呼叫 Windows API 回傳的錯誤碼,HttpExceptionGetLastError()方法。

適用於

另請參閱