HttpException.CreateFromLastError(String) 方法

定義

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

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

例外狀況擲回時,錯誤訊息會顯示在用戶端。

傳回

HttpException

HttpException,根據對 Windows API GetLastError() 方法的呼叫所傳回的錯誤碼。

適用於

另請參閱