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

When Logged In user is Being removed By its Contact

C#
public event OnFriendRemoved;
Visual Basic
Public Event OnFriendRemoved(ByVal FriendUsername As String, ByVal Message As String)
Return Values 
Description 
ByVal FriendUsername As String 
Username of the Friend that removed this user 
ByVal Message As String 
Message by the Friend  

When this sub IMSDK.IMClient.BeginRemoveFriend is called then this event is raised on the Friend IMClient 

if there is message this event will also hold that

    [Visual Basic]
 Private Sub MC_OnFriendRemoved(ByVal FriendUsername As String, ByVal Message As String) Handles MC.OnFriendRemoved
       Debug.WriteLine("On Friend Removed : " & FriendUsername  & " " & Message)
    End Sub
Copyright (c) 2007. All rights reserved.