[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

The Messagetype exposes the following methods.

Methods

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

  Member Description
AddCertificateToMessage(MessageCertificateX509, CertificatePurposes)
Adds a certificate to the message
AddCertificateToMessage(MessageCertificateX509, CertificatePurposes, Boolean)
Adds certificate to message with the option to disable any intelligence
CloneBase () () () ()
Creates a clone of this message

IMPORTANT: This is not the same as Clone () () () () which is why this message type does not implement ICloneable. This does not behave the same as Clone () () () () . It is not recommended that any code outside of Messaging core code use this function without understanding how it works, what its limitations are, and why it's being used. Chances are if you're looking at this method, you probably want to use CloneByRef(IMessage)instead.

CloneByRef(IMessage)
Clones a reference of a message. Use this for doing a copy of an existing message (especially of a different type) into this one.

IMPORTANT: This is not the same as Clone () () () () which is why this message type does not implement ICloneable. This does not behave the same as Clone () () () () . It is not recommended that any code outside of Messaging core code use this function without understanding how it works, what its limitations are, and why it's being used.

CloneByRef(IMessage, MessageCloneOptions)
Clones a reference of a message. Use this for doing a copy of an existing message (especially of a different type) into this one.

IMPORTANT: This is not the same as Clone () () () () which is why this message type does not implement ICloneable. This does not behave the same as Clone () () () () . It is not recommended that any code outside of Messaging core code use this function without understanding how it works, what its limitations are, and why it's being used.

CriticalSection(Action)
Invokes a statement within a thread-safe critical section
CriticalSection < (Of < <' ( T > ) > > ) (Func < (Of < ( <' TResult > ) > ) > )
DeserializeMessageBody () () () ()
Internal handler for deserializing payload to its object format. This should only be called by external code under exceptional circumstances.
Discover () () () ()
Performs discovery if supported by the message.
Equals(Object) (Inherited from Object.)
Finalize () () () () (Inherited from Object.)
GetCertificateFromMessage(CertificatePurposes)
Retrieves X509-based certificate from message.
GetHashCode () () () () (Inherited from Object.)
GetType () () () () (Inherited from Object.)
MemberwiseClone () () () () (Inherited from Object.)
OnDeserialization(Object)
On deserialization, this ensures validity checks are never performed.
PostSendActions(IMessageSender, Boolean)
Actions to run after the message is sent (asynchronous, use with care).
PreSendActions () () () ()
Actions to run before the message is sent (synchronous and blocking)
SendInlineStatusMessage(SmsEvent, IMessageSender)
Sends a status message. This is a synchronous operation so it should be called from a separate thread to avoid blocking
SendInlineStatusMessage(StatusMessage, IMessageSender)
Sends a status message. This is a synchronous operation so it should be called from a separate thread to avoid blocking
IMessage . . :: . . SendMessage(IMessageSender)
Sends message via the specified sender.
SendMessageAsync(IMessageSender)
Sends message via the specified sender.
SendMessageSync < (Of < <' ( T > ) > > ) (IMessageSender)
Sends message via the specified sender.
SerializeMessageBody () () () ()
Internal handler for serializing the message payload to its wire-level format. This should only be called by external code under exceptional circumstances.
SimpleBodyDeserialization < (Of < <' ( T > ) > > ) () () () ()
Helper function that deserializes the object from the existing payload
SimpleBodyDeserialization < (Of < <' ( T > ) > > ) (DeserializationArguments)
Helper function that deserializes the object from the existing payload
SimpleObjectSerialization(Object)
Helper function that serializes the object to a payload
ToString () () () () (Inherited from Object.)
Validate () () () ()
Validates all required message settings are present and meet the requirements. If this fails, it means that the message is almost certain to fail sending or being processed by the site/MP.

See Also