DotMSN |

# P2PMessageSession.RegisterHandler Method

Registers a message handler. After registering the handler will receive incoming messages.

[Visual Basic]
NotOverridable Public Sub RegisterHandler( _
ByVal handler As IMessageHandler _
) _
Implements IMessageProcessor.RegisterHandler
[C#]
public void RegisterHandler(
IMessageHandler handler
);

#### Parameters

handler

#### Implements

IMessageProcessor.RegisterHandler

#### See Also

P2PMessageSession Class | XihSolutions.DotMSN.DataTransfer Namespace