ProtocolException Constructor
Initializes a new instance of the ProtocolException class.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Name | Description | |
|---|---|---|
![]() | ProtocolException() | Initializes a new instance of the ProtocolException class. |
![]() | ProtocolException(SerializationInfo^, StreamingContext) | Initializes a new instance of the ProtocolException class with serialization information and streaming context specified. |
![]() | ProtocolException(String^) | Initializes a new instance of the ProtocolException class with a specified error message. |
![]() | 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. |
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.

