You are here: MessengerYouLike.IMSDK > IMSDK Reference > IMSDK Namespace > Classes > IMClient Class > IMClient Events > IMClient.OnCustomCommandReceived Event
MessengerYouLike
IMClient.OnCustomCommandReceived Event

This Event Shows the Custom data which was Sent by the IM Server

C#
public event OnCustomCommandReceived;
Visual Basic
Public Event OnCustomCommandReceived(ByVal Data As String, ByVal Type As String)
Return Values 
Description 
ByVal Data As String 
Data That is Sent from the server 
ByVal Type As String 
This is also a string value that is sent from the server to the IMClient 

From the Server Administrator can send a custom data to the online Users and the data is made available to the Online IMClient via this event 

 

as developer you can use this function to

  • open url in the default browser
  • To send a custom message to all online users
  • Send news alerts , etc etc

 

any string value can be sent to the online IMClient and that can be used for numbers of possibilities

 [Visual Basic]
  Private Sub MC_OnCustomCommandReceived(ByVal Data As String, ByVal Type As String) Handles MC.OnCustomCommandReceived
        Debug.Writeline("On Custom Command Received :" & Data & "  " & Type)
    End Sub
Copyright (c) 2007. All rights reserved.