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

When a Logged in User Blocks there Contact. That contact is notified via this event that it is blocked

C#
public event OnFriendAMIUnBlocked;
Visual Basic
Public Event OnFriendAMIUnBlocked(ByVal FriendUsername As String)
Return Values 
Description 
ByVal FriendUsername As String 
Username of Friend Who Unblocked this User 

 

This event is only raised to the online IMClients when both IMClients are Online 

also each friend can check wether they are Unblocked or not by the property IMSDK.Friends.MFriend.AmIBlocked

This event Notifies the Friend that it is being Unblocked via sub IMSDK.IMClient.BeginFriendBlockUnBlock.

 [Visual Basic]
 
  Private Sub MC_OnFriendAMIUnBlocked(ByVal FriendUsername As String) Handles MC.OnFriendAMIUnBlocked
   Debug.Writeline("You have Been Blocked By  : " & FriendUsername)
  End Sub
Copyright (c) 2007. All rights reserved.