ProtocolViolationException Constructor (String)
Collapse the table of content
Expand the table of content

ProtocolViolationException Constructor (String)

.NET Framework 1.1

Initializes a new instance of the ProtocolViolationException class with the specified message.

[Visual Basic]
Public Sub New( _
   ByVal message As String _
public ProtocolViolationException(
   string message
public: ProtocolViolationException(
   String* message
public function ProtocolViolationException(
   message : String


The error message string.


This constructor initializes a new instance of the ProtocolViolationException class with the Message property set to the value of the message parameter. If message is a null reference, the Message property is initialized to a system-supplied message. The InnerException property is initialized to a null reference (Nothing in Visual Basic).


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, Common Language Infrastructure (CLI) Standard

See Also

ProtocolViolationException Class | ProtocolViolationException Members | System.Net Namespace | ProtocolViolationException Constructor Overload List

© 2016 Microsoft