This documentation is archived and is not being maintained.

Message Methods

(see also Protected Methods )
  Name Description
Public method Close Closes the Message and releases any resources.
Public method CreateBufferedCopy Stores an entire Message into a memory buffer for future consumption.
Public method Static CreateMessage Overloaded. Creates a message.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetBody Overloaded.  
Public method GetBodyAttribute Retrieves the attributes of the message body.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetReaderAtBodyContents Gets the XML dictionary reader that consumes the body content of this message.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString Overridden. Returns a string that represents the current Message.
Public method WriteBody Overloaded. Serializes the body element to XML.
Public method WriteBodyContents Serializes the body content using the specified XmlDictionaryWriter.
Public method WriteMessage Overloaded. Serializes the entire message.
Public method WriteStartBody Overloaded. Serializes the start body.
Public method WriteStartEnvelope Serializes the start envelope using the specified XmlDictionaryWriter.

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Protected method OnBodyToString Called when the message body is converted to a string.
Protected method OnClose Called when the message is closing.
Protected method OnCreateBufferedCopy Called when a message buffer is created to store this message.
Protected method OnGetBodyAttribute Called when the attributes of the message body is retrieved.
Protected method OnGetReaderAtBodyContents Called when an XML dictionary reader that can consume the body content of this message can be retrieved.
Protected method OnWriteBodyContents Called when the message body is written to an XML file.
Protected method OnWriteMessage Called when the entire message is written to an XML file.
Protected method OnWriteStartBody Called when the start body is written to an XML file.
Protected method OnWriteStartEnvelope Called when the start envelope is written to an XML file.
Protected method OnWriteStartHeaders Called when the start header is written to an XML file.

  Name Description
Explicit interface implementation Method System.IDisposable.Dispose Closes all the resources used by this message. This method cannot be inherited.