DotMSN |

# SBMessageHandler.HandleMessage Method

Handles message from the processor.

[Visual Basic]
Overridable Public Sub HandleMessage( _
ByVal sender As IMessageProcessor, _
ByVal message As NetworkMessage _
) _
Implements IMessageHandler.HandleMessage
[C#]
public virtual void HandleMessage(
IMessageProcessor sender,
NetworkMessage message
);

#### Parameters

sender
message
  The network message received from the notification server

#### Implements

IMessageHandler.HandleMessage

#### Remarks

This is one of the most important functions of the class. It handles incoming messages and performs actions based on the commands in the messages. Many commands will affect the data objects in DotMSN, like Contact and ContactGroup. For example contacts are renamed, contactgroups are added and status is set. Exceptions which occur in this method are redirected via the ExceptionOccurred event.

#### See Also

SBMessageHandler Class | XihSolutions.DotMSN Namespace