This documentation is archived and is not being maintained.
HttpException.CreateFromLastError Method
.NET Framework 1.1
Creates a new Exception based on the error code returned from the Win32 API GetLastError() method.
[Visual Basic] Public Shared Function CreateFromLastError( _ ByVal message As String _ ) As HttpException [C#] public static HttpException CreateFromLastError( string message ); [C++] public: static HttpException* CreateFromLastError( String* message ); [JScript] public static function CreateFromLastError( message : String ) : HttpException;
Parameters
- message
- The message to be displayed to the client when the exception is thrown.
Return Value
An Exception based on the error code that is returned from a call to the Win32 API GetLastError() method.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
HttpException Class | HttpException Members | System.Web Namespace
Show: