Export (0) Print
Expand All
2 out of 3 rated this helpful - Rate this topic

WebException Class

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

For a list of all members of this type, see WebException Members.

System.Object
   System.Exception
      System.SystemException
         System.InvalidOperationException
            System.Net.WebException

[Visual Basic]
<Serializable>
Public Class WebException
   Inherits InvalidOperationException
[C#]
[Serializable]
public class WebException : InvalidOperationException
[C++]
[Serializable]
public __gc class WebException : public InvalidOperationException
[JScript]
public
   Serializable
class WebException extends InvalidOperationException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

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

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

Requirements

Namespace: System.Net

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: System (in System.dll)

See Also

WebException Members | System.Net Namespace | Exception

Show:
© 2014 Microsoft. All rights reserved.