HttpException.CreateFromLastError Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Available since 1.1
Return to top
Show: