Export (0) Print
Expand All

HttpException.CreateFromLastError Method

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 static HttpException CreateFromLastError(
	string message
)

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft