MessageHeaderException Constructor

 

Initializes a new instance of the MessageHeaderException class.

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

NameDescription
System_CAPS_pubmethodMessageHeaderException()

Initializes a new instance of the MessageHeaderException class.

System_CAPS_protmethodMessageHeaderException(SerializationInfo, StreamingContext)

Initializes a new instance of the MessageHeaderException class used to deserialize data into a MessageHeaderException object.

System_CAPS_pubmethodMessageHeaderException(String)

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

System_CAPS_pubmethodMessageHeaderException(String, Boolean)

Initializes a new instance of the MessageHeaderException class using the specified message and a value that indicates whether the message header is a duplicate or is missing.

System_CAPS_pubmethodMessageHeaderException(String, Exception)

Initializes a new instance of the MessageHeaderException class using the specified message and the inner exception that caused the exception.

System_CAPS_pubmethodMessageHeaderException(String, String, String)

Initializes a new instance of the MessageHeaderException class using the specified message, header name and namespace.

System_CAPS_pubmethodMessageHeaderException(String, String, String, Boolean)

Initializes a new instance of the MessageHeaderException class using the specified message, header name and namespace, and a value that indicates whether the message header is a duplicate or is missing.

System_CAPS_pubmethodMessageHeaderException(String, String, String, Boolean, Exception)

Initializes a new instance of the MessageHeaderException class using the specified message, header name and namespace, a value that indicates whether the message header is a duplicate or is missing, and the inner exception that caused the exception.

System_CAPS_pubmethodMessageHeaderException(String, String, String, Exception)

Initializes a new instance of the MessageHeaderException class using the specified message, header name and namespace, and the inner exception that caused the exception.

If you want to pass an error message to the user, use the MessageHeaderException(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 MessageHeaderException(String, Exception) constructor.

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

Return to top
Show: