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

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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.