Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ProtocolException Constructor

 

Initializes a new instance of the ProtocolException class.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

NameDescription
System_CAPS_pubmethodProtocolException()

Initializes a new instance of the ProtocolException class.

System_CAPS_protmethodProtocolException(SerializationInfo^, StreamingContext)

Initializes a new instance of the ProtocolException class with serialization information and streaming context specified.

System_CAPS_pubmethodProtocolException(String^)

Initializes a new instance of the ProtocolException class with a specified error message.

System_CAPS_pubmethodProtocolException(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.

Return to top
Show:
© 2017 Microsoft