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 | |
---|---|---|
MessageFault | When called in a derived class, initializes a new instance of the MessageFault class. |
Top
Properties
Name | Description | |
---|---|---|
Actor | Gets or sets the value of the actor. | |
Code | Gets the SOAP fault code. | |
HasDetail | Gets a value that indicates whether the MessageFault has a detail object. | |
Node | Gets the SOAP node. | |
Reason | Gets a textual description of a SOAP fault. |
Top
Methods
Name | Description | |
---|---|---|
CreateFault | Returns a new MessageFault object that uses the specified Message and the specified maximum buffer size for the message buffer. | |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
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.) | |
GetDetail<T>() | Returns the detail object of the message fault. | |
GetDetail<T>(XmlObjectSerializer) | Returns the detail object that uses the specified XmlObjectSerializer. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetReaderAtDetailContents | Returns an XmlDictionaryReader object that is positioned on the detail object of the MessageFault. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnGetReaderAtDetailContents | When called in a derived class, returns an XmlDictionaryReader object that is positioned on the detail object of the MessageFault. | |
OnWriteDetail | Invoked prior to writing the detail contents. | |
OnWriteDetailContents | When overridden in a non-abstract derived class, writes the contents of the detail element. | |
OnWriteStartDetail | Writes the start element using the specified XmlDictionaryWriter and SOAP envelope version. | |
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.