HttpException.CreateFromLastError Method (String)

 

Creates a new HttpException exception based on the error code that is returned from the Win32 API GetLastError() method.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

Public Shared Function CreateFromLastError (
	message As String
) As HttpException

Parameters

message
Type: System.String

The error message displayed to the client when the exception is thrown.

Return Value

Type: System.Web.HttpException

An HttpException based on the error code that is returned from a call to the Win32 API GetLastError() method.

.NET Framework
Available since 1.1
Return to top
Show: