Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

MessageFault Class

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

System.Object
  System.ServiceModel.Channels.MessageFault

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
'Declaration
Public MustInherit Class MessageFault

The MessageFault type exposes the following members.

  NameDescription
Protected methodSupported by Silverlight for Windows PhoneMessageFaultWhen called in a derived class, initializes a new instance of the MessageFault class.
Top
  NameDescription
Public propertySupported by Silverlight for Windows PhoneActorGets or sets the value of the actor.
Public propertySupported by Silverlight for Windows PhoneCodeGets the SOAP fault code.
Public propertySupported by Silverlight for Windows PhoneHasDetailGets a value that indicates whether the MessageFault has a detail object.
Public propertySupported by Silverlight for Windows PhoneNodeGets the SOAP node.
Public propertySupported by Silverlight for Windows PhoneReasonGets a textual description of a SOAP fault.
Top
  NameDescription
Public methodStatic memberSupported by Silverlight for Windows PhoneCreateFaultReturns 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 PhoneEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneFinalizeAllows 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 PhoneGetDetail(Of T)Returns the detail object of the message fault.
Public methodSupported by Silverlight for Windows PhoneGetDetail(Of T)(XmlObjectSerializer)Returns the detail object that uses the specified XmlObjectSerializer.
Public methodSupported by Silverlight for Windows PhoneGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetReaderAtDetailContentsReturns an XmlDictionaryReader object that is positioned on the detail object of the MessageFault.
Public methodSupported by Silverlight for Windows PhoneGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneOnGetReaderAtDetailContentsWhen 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 PhoneOnWriteDetailInvoked prior to writing the detail contents.
Protected methodSupported by Silverlight for Windows PhoneOnWriteDetailContentsWhen overridden in a non-abstract derived class, writes the contents of the detail element.
Protected methodSupported by Silverlight for Windows PhoneOnWriteStartDetailWrites the start element using the specified XmlDictionaryWriter and SOAP envelope version.
Public methodSupported by Silverlight for Windows PhoneToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

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

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.