Mono Class Library: System.Net Namespace

System.Net.ProtocolViolationException Class

Represents errors that occur due to violating the rules of a network protocol. [Edit]

See Also: ProtocolViolationException Members

System.Object
     System.Exception
          System.SystemException
               System.InvalidOperationException
                    System.Net.ProtocolViolationException

public class ProtocolViolationException : InvalidOperationException

Thread Safety

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

Remarks

A System.Net.ProtocolViolationException is thrown by types derived from System.Net.WebRequest and System.Net.WebResponse to indicate that an error has occurred as defined by the rules of the underlying protocol. For example, the System.Net.HttpWebRequest type throws a System.Net.ProtocolViolationException when an application attempts to send content without specifying the content length. [Edit]

Requirements

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