Give Us a Call: +1-877-99-BOPUP (877-992-6787) or Request for a Live Chat

IServerClientVB::SendMessage method

Sends an instant message to a user or on a messaging group.

Public Sub SendMessage(     ByRef Message As VBMessageStruct,     ByRef ResultCode As UInteger )


[in] Variable of VBMessageStruct structure that contains information on the instant message.
[out] Variable of UInteger type that gets an extended code if error result is returned. For available codes see Available Extended Codes topic.

Return Value

The function was successful. Check ResultCode variable to get extended information.
One or more arguments are incorrect.
Some error occurred in the function. Check ResultCode variable to get extended information on the error.


The MessageKey member of the pointed VBMessageStruct contains a unique key if the call of the method is succeeded. That value can be used to identify the outgoing instant messaging in the application.