August 2003
Intermediate to advanced
928 pages
32h 1m
English
WebException
This exception represents an error
that occurred while using a
protocol-specific implementation of WebRequest. In
the case of some protocols, such as HTTP, the
exception’s Response property
contains information about the error that occurred.
public class WebException : InvalidOperationException { // Public Constructors public WebException( ); public WebException(stringmessage); public WebException(stringmessage, ExceptioninnerException); public WebException(stringmessage, ExceptioninnerException, WebExceptionStatusstatus, WebResponseresponse); public WebException(stringmessage, WebExceptionStatusstatus); // Protected Constructors protected WebException(System.Runtime.Serialization.SerializationInfoserializationInfo, System.Runtime.Serialization.StreamingContextstreamingContext); // Public Instance Properties public WebResponse Response{get; } public WebExceptionStatus Status{get; } }
System.Object
→
System.Exception(System.Runtime.Serialization.ISerializable)
→
System.SystemException
→
System.InvalidOperationException
→
WebException