Share via


MessageFault Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Represents an in-memory representation of a SOAP fault that can be passed to CreateMessage to create a message that contains a fault.

Inheritance Hierarchy

System.Object
  System.ServiceModel.Channels.MessageFault

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

Syntax

'Declaration
Public MustInherit Class MessageFault
public abstract class MessageFault

The MessageFault type exposes the following members.

Constructors

  Name Description
Protected methodSupported by Silverlight for Windows Phone MessageFault When called in a derived class, initializes a new instance of the MessageFault class.

Top

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone Actor Gets or sets the value of the actor.
Public propertySupported by Silverlight for Windows Phone Code Gets the SOAP fault code.
Public propertySupported by Silverlight for Windows Phone HasDetail Gets a value that indicates whether the MessageFault has a detail object.
Public propertySupported by Silverlight for Windows Phone Node Gets the SOAP node.
Public propertySupported by Silverlight for Windows Phone Reason Gets a textual description of a SOAP fault.

Top

Methods

  Name Description
Public methodStatic memberSupported by Silverlight for Windows Phone CreateFault Returns a new MessageFault object that uses the specified Message and the specified maximum buffer size for the message buffer.
Public methodSupported by Silverlight for Windows Phone Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetDetail<T>() Returns the detail object of the message fault.
Public methodSupported by Silverlight for Windows Phone GetDetail<T>(XmlObjectSerializer) Returns the detail object that uses the specified XmlObjectSerializer.
Public methodSupported by Silverlight for Windows Phone GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows Phone GetReaderAtDetailContents Returns an XmlDictionaryReader object that is positioned on the detail object of the MessageFault.
Public methodSupported by Silverlight for Windows Phone GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows Phone OnGetReaderAtDetailContents When called in a derived class, returns an XmlDictionaryReader object that is positioned on the detail object of the MessageFault.
Protected methodSupported by Silverlight for Windows Phone OnWriteDetail Invoked prior to writing the detail contents.
Protected methodSupported by Silverlight for Windows Phone OnWriteDetailContents When overridden in a non-abstract derived class, writes the contents of the detail element.
Protected methodSupported by Silverlight for Windows Phone OnWriteStartDetail Writes the start element using the specified XmlDictionaryWriter and SOAP envelope version.
Public methodSupported by Silverlight for Windows Phone ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

Use the MessageFault class any time you need an in-memory SOAP fault that can be modified and used to create a SOAP message that contains the fault information.

Version Information

Silverlight

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

Platforms

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.