March 2002
Intermediate to advanced
864 pages
31h 8m
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 method WebException(); public method WebException(string message); public method WebException(string message, Exception innerException); public method WebException(string message, Exception innerException, WebExceptionStatus status, WebResponse response); public method WebException(string message, WebExceptionStatus status); // Protected Constructors protected method WebException( System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext); // Public Instance Properties public field WebResponse Response{get; } public field WebExceptionStatus Status{get; } }
System.Object→System.Exception(System.Runtime.Serialization.ISerializable)→System.SystemException→System.InvalidOperationException→WebException