System.Net.WebException Class

The exception that is thrown when an error occurs while accessing the network through a pluggable protocol.

See Also: WebException Members


public class WebException : InvalidOperationException


The System.Net.WebException class is thrown by classes descended from System.Net.WebRequest and System.Net.WebResponse that implement pluggable protocols for accessing the Internet.

When System.Net.WebException is thrown by a descendant of the System.Net.WebRequest class, the WebException.Response property provides the Internet response to the application.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.


Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.x.x, 1.0.5000.0,,