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

When Logged In user is Being removed By its Contact and Contact is Online

C#
public event OnOnlineFriendRemoved;
Visual Basic
Public Event OnOnlineFriendRemoved(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 

this event will only be called when both of the IMClients are online

    [Visual Basic]
 Private Sub MC_OnOnlineFriendRemoved(ByVal FriendUsername As String, ByVal Message As String) Handles MC.OnOnlineFriendRemoved
       Debug.WriteLine("Your Friend : " & FriendUsername & " has removed you from its friend list with a message : " & Message)
    End Sub
Copyright (c) 2007. All rights reserved.