CreateMessageFault Method
Collapse the table of content
Expand the table of content

FaultException.CreateMessageFault Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns an in-memory MessageFault object.

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

'Declaration
Public Overridable Function CreateMessageFault As MessageFault

Return Value

Type: System.ServiceModel.Channels.MessageFault
The MessageFault object that is passed to CreateMessage to create a message that contains a fault.

For FaultException objects that result from fault messages, this MessageFault object is the fault that arrives.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft