Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ProtocolViolationException Class

The exception that is thrown when an error is made while using a network protocol.

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

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

[Visual Basic]
<Serializable>
Public Class ProtocolViolationException
   Inherits InvalidOperationException
[C#]
[Serializable]
public class ProtocolViolationException :
   InvalidOperationException
[C++]
[Serializable]
public __gc class ProtocolViolationException : public
   InvalidOperationException
[JScript]
public
   Serializable
class ProtocolViolationException 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

A ProtocolViolationException is thrown by descendants of WebRequest and WebResponse to indicate an error using the underlying protocol. For example, the HttpWebRequest and HttpWebResponse classes throw a ProtocolViolationException to indicate an error using HTTP.

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

ProtocolViolationException Members | System.Net Namespace | Exception

Show:
© 2014 Microsoft. All rights reserved.