FaultException.CreateMessageFault Method

Returns an in-memory MessageFault object.

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

public virtual MessageFault CreateMessageFault()

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.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions