Export (0) Print
Expand All

ProtocolException Constructor

Initializes a new instance of the ProtocolException class.

If you want to pass an error message to the user, use the ProtocolException(String) constructor.

If you want to pass an error message and a reference to the inner exception that is the cause of the exception to the user, use the ProtocolException(String,Exception) constructor.

If you want to pass serialization information and streaming context, use the ProtocolException(SerializationInfo,StreamingContext) constructor.

Name Description
ProtocolException () Initializes a new instance of the ProtocolException class.
ProtocolException (String) Initializes a new instance of the ProtocolException class with a specified error message.
ProtocolException (SerializationInfo, StreamingContext) Initializes a new instance of the ProtocolException class with serialization information and streaming context specified.
ProtocolException (String, Exception) Initializes a new instance of the ProtocolException class with a specified error message and a reference to the inner exception that is the cause of the exception.

Community Additions

ADD
Show:
© 2015 Microsoft