MessageHeaderException Constructor (String, String, String, Boolean, Exception)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
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.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
'Declaration Public Sub New ( _ message As String, _ headerName As String, _ ns As String, _ isDuplicate As Boolean, _ innerException As Exception _ )
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.
Show: