The WebException type exposes the following members.

Constructors

  NameDescription
Public methodWebException()()()()
The default constructor.
Public methodWebException(String)
Constructs a WebException based on the specified message string.
Public methodWebException(String, WebExceptionStatus)
Constructs a WebException based on the specified message string and WebExceptionStatus.
Public methodWebException(String, Exception)
Constructs a WebException based on the specified message string and inner exception.
Public methodWebException(String, Exception, WebExceptionStatus, WebResponse)
Constructs a WebException based on the specified message string, inner exception, [!:System.Net.WebExceptionStatus], and [!:System.Net.WebResponse].

Properties

  NameDescription
Public propertyResponse
Gets the response that the remote host returned.
Public propertyStatus
Gets the WebExceptionStatus code.

See Also