Export (0) Print
Expand All

MessageHeaderException Constructor (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.

Namespace:  System.ServiceModel
Assemblies:   System.ServiceModel (in System.ServiceModel.dll)
  System.ServiceModel.Primitives (in System.ServiceModel.Primitives.dll)

public MessageHeaderException(
	string message,
	string headerName,
	string ns,
	bool isDuplicate,
	Exception innerException
)

Parameters

message
Type: System.String

The exception message.

headerName
Type: System.String

The name of the message header.

ns
Type: System.String

The namespace of the message header.

isDuplicate
Type: System.Boolean

true if the multiple message header is a duplicate; false if there are no message headers.

innerException
Type: System.Exception

The Exception that contains the inner exception that caused the exception.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft