Message Methods

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

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The Message type exposes the following members.

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone Close Closes the Message and releases any resources.
Public methodStatic memberSupported by Silverlight for Windows Phone CreateMessage(MessageVersion, String) Creates a message that contains a version and an action.
Public methodStatic memberSupported by Silverlight for Windows Phone CreateMessage(MessageVersion, String, Object) Creates a message with the specified version, action and body.
Public methodStatic memberSupported by Silverlight for Windows Phone CreateMessage(MessageVersion, String, BodyWriter) Creates a message with a body that consists of an array of bytes.
Public methodStatic memberSupported by Silverlight for Windows Phone CreateMessage(MessageVersion, String, XmlDictionaryReader) Creates a message with the specified version, action and body.
Public methodStatic memberSupported by Silverlight for Windows Phone CreateMessage(MessageVersion, String, XmlReader) Creates a message using the specified reader, action and version.
Public methodStatic member CreateMessage(XmlDictionaryReader, Int32, MessageVersion) Creates a message using a specified dictionary reader, size allocation for the message headers, and version.
Public methodStatic member CreateMessage(XmlReader, Int32, MessageVersion) Creates a message using a specified XML reader, size allocation for the message headers, and version.
Public methodStatic memberSupported by Silverlight for Windows Phone CreateMessage(MessageVersion, String, Object, XmlObjectSerializer) Creates a message using the specified version, action, message body and serializer.
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 GetBody<T>() Retrieves the body of this Message instance.
Public methodSupported by Silverlight for Windows Phone GetBody<T>(XmlObjectSerializer) Retrieves the body of this Message using the specified serializer.
Public methodSupported by Silverlight for Windows Phone GetBodyAttribute Retrieves the attributes of the message body.
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 GetReaderAtBodyContents Gets the XML dictionary reader that accesses the body content of this message.
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 OnBodyToString Called when the message body is converted to a string.
Protected methodSupported by Silverlight for Windows Phone OnClose Called when the message is closing.
Protected method OnCreateBufferedCopy Called when a message buffer is created to store this message.
Protected methodSupported by Silverlight for Windows Phone OnGetBodyAttribute Called when the attributes of the message body is retrieved.
Protected methodSupported by Silverlight for Windows Phone OnGetReaderAtBodyContents Called when an XML dictionary reader that can access the body content of this message can be retrieved.
Protected methodSupported by Silverlight for Windows Phone OnWriteBodyContents Called when the message body is written to an XML file.
Protected methodSupported by Silverlight for Windows Phone OnWriteMessage Called when the entire message is written to an XML file.
Protected methodSupported by Silverlight for Windows Phone OnWriteStartBody Called when the start body is written to an XML file.
Protected methodSupported by Silverlight for Windows Phone OnWriteStartEnvelope Called when the start envelope is written to an XML file.
Protected methodSupported by Silverlight for Windows Phone OnWriteStartHeaders Called when the start header is written to an XML file.
Public methodSupported by Silverlight for Windows Phone ToString Returns a string that represents the current Message. (Overrides Object.ToString().)
Public methodSupported by Silverlight for Windows Phone WriteBody(XmlDictionaryWriter) Writes the body element using the specified XmlDictionaryWriter.
Public methodSupported by Silverlight for Windows Phone WriteBody(XmlWriter) Serializes the message body using the specified XmlWriter.
Public methodSupported by Silverlight for Windows Phone WriteBodyContents Serializes the body content using the specified XmlDictionaryWriter.
Public methodSupported by Silverlight for Windows Phone WriteMessage(XmlDictionaryWriter) Serializes the entire message using the specified XmlDictionaryWriter.
Public methodSupported by Silverlight for Windows Phone WriteMessage(XmlWriter) Serializes the entire message using the specified XmlWriter.
Public methodSupported by Silverlight for Windows Phone WriteStartBody(XmlDictionaryWriter) Serializes the start body using the specified XmlDictionaryWriter.
Public methodSupported by Silverlight for Windows Phone WriteStartBody(XmlWriter) Serializes the start body using the specified XmlDictionaryWriter.
Public methodSupported by Silverlight for Windows Phone WriteStartEnvelope Serializes the start envelope using the specified XmlDictionaryWriter.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows Phone IDisposable.Dispose Closes all the resources used by this message. This method cannot be inherited.

Top