Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MessageHeaderException Constructor

MessageHeaderException Constructor

Initializes a new instance of the MessageHeaderException class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method MessageHeaderException() Initializes a new instance of the MessageHeaderException class.
Public method Supported by Portable Class Library MessageHeaderException(String) Initializes a new instance of the MessageHeaderException class with the specified message.
Protected method MessageHeaderException(SerializationInfo, StreamingContext) Initializes a new instance of the MessageHeaderException class used to deserialize data into a MessageHeaderException object.
Public method Supported by Portable Class Library MessageHeaderException(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.
Public method Supported by Portable Class Library MessageHeaderException(String, Exception) Initializes a new instance of the MessageHeaderException class using the specified message and the inner exception that caused the exception.
Public method Supported by Portable Class Library MessageHeaderException(String, String, String) Initializes a new instance of the MessageHeaderException class using the specified message, header name and namespace.
Public method Supported by Portable Class Library MessageHeaderException(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.
Public method Supported by Portable Class Library MessageHeaderException(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.
Public method Supported by Portable Class Library MessageHeaderException(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.
Top

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.

Show:
© 2015 Microsoft