DotMSN |

# NetworkMessage Methods

The methods of the NetworkMessage class are listed below. For a complete list of NetworkMessage class members, see the NetworkMessage Members topic.

#### Public Instance Methods

AppendArray | Helper method. Appends one array to the other. The second parameter, appendingArray, can be null. In that case the original byte array is returned and no copy is made.
CreateFromMessage | Creates the networkmessage based on the inner contents of the parent message. It invokes the ParseBytes method to parse the inner body contents of the parent message.
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object.
GetBytes | Converts the contents of this message into a array of bytes. This is used for transmitting the contents of this message across a socket connection.
GetHashCode (inherited from Object) | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) | Gets the Type of the current instance.
ParseBytes | Parses incoming byte data send from the network. Must be implemented by derived classes.
PrepareMessage | Prepares the messages before it is sended. Some messageobjects will set properties in their 'parent' messageobject in this method. This method is automatically called for the inner message object, if present.
ToDebugString | Textual presentation.
ToString (inherited from Object) | Returns a String that represents the current Object.

#### Protected Instance Methods

Finalize (inherited from Object) | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object.
OnInnerMessageSet | Called when the innermessage property is set. This sets the ParentMessage property on the inner message object
OnParentMessageSet | Called when the parent message is set. This sets the InnerMessage property on the parent message object.

#### See Also

NetworkMessage Class | XihSolutions.DotMSN.Core Namespace