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

On new registration [ IMSDK.IMClient.BeginSignUp ] this event is fired if the username is already taken

C#
public event OnUsernameAlreadyExsist;
Visual Basic
Public Event OnUsernameAlreadyExsist(ByVal Username As String, ByVal Password As String)
Return Values 
Description 
ByVal Username As String 
username which is already taken 
ByVal Password As String 
Password as specified at time of sign up 

As usernames Should be unique so no duplicates are allowed , so if the username is already in the IM server then this event is fired

[Visual Basic]
  Private Sub MC_OnUsernameAlreadyExsist(ByVal Username As String, ByVal Password As String) Handles MC.OnUsernameAlreadyExsist
        Debug.Writeline("username : " & Username & " : Password : " & Password & " Already exsists")
 End Sub
Copyright (c) 2007. All rights reserved.