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

When Some user Wants to Add this User as a Friend in there list

C#
public event OnFriendAskingPrimssion;
Visual Basic
Public Event OnFriendAskingPrimssion(ByVal FriendUsername As String, ByVal Message As String)
Return Values 
Description 
ByVal FriendUsername As String 
username of the friend 
ByVal Message As String 
Message from the friend 

When this sub IMSDK.IMClient.BeginAddFriend is called the Friend is notified via this event that user is asking for the permission to add them as a friend

  [Visual Basic]
  Private Sub MC_OnFriendAskingPrimssion(ByVal FriendUsername As String, ByVal Message As String) Handles MC.OnFriendAskingPrimssion
       Debug.WriteLine( FriendUsername & " wants you to add as a friend")
    End Sub
Copyright (c) 2007. All rights reserved.