Share via


WebException Constructor

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Initializes a new instance of the WebException class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method WebException() () () () Initializes a new instance of the WebException class.
Public method WebException(String) Initializes a new instance of the WebException class with the specified error message.
Public method WebException(String, Exception) Initializes a new instance of the WebException class with the specified error message and nested exception.
Public method WebException(String, WebExceptionStatus) Initializes a new instance of the WebException class with the specified error message and status.
Public method WebException(String, Exception, WebExceptionStatus, WebResponse) Initializes a new instance of the WebException class with the specified error message, nested exception, status, and response.

Top

See Also

Reference

WebException Class

System.Net Namespace