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

This Event is raised only when user is blocked by the IM Server

C#
public event OnUserBlockByAdmin;
Visual Basic
Public Event OnUserBlockByAdmin(ByVal Username As String, ByVal BlockedMessage As String)
Return Values 
Description 
ByVal Username As String 
the Username of the user who is blocked by admin 
ByVal BlockedMessage As String 
Message for this user as sepcifed by the admin 

if the IM server Blocks this user this user will not be allowed to log in and a message will be shown as set by the IM server

  [Visual Basic]
 Private Sub MC_OnUserBlockByAdmin(ByVal Username As String, ByVal BlockedMessage As String) Handles MC.OnUserBlockByAdmin
        MsgBox("Udsername : " & Username & " Is Blocked by admin with a Message : " & vbCrLf & BlockedMessage)
    End Sub
Copyright (c) 2007. All rights reserved.