You are here: MessengerYouLike.IMSDK > IMSDK Reference > IMSDK Namespace > Classes > IMClient Class > IMClient Methods > IMClient.BeginSignUp Method
MessengerYouLike
IMClient.BeginSignUp Method

This Method Allows users to Create a new account

C#
public BeginSignUp(String Email, String Username, String Password, String FirstName, String LastName);
Visual Basic
Public Sub BeginSignUp(ByVal Email As String, ByVal Username As String, ByVal Password As String, ByVal FirstName As String, ByVal LastName As String)
Parameters 
Description 
ByVal Email As String 
Email address of the user 
ByVal Username As String 
Username of the user , Should be unique 
ByVal Password As String 
Password of the user 
ByVal FirstName As String 
First name of the user 
ByVal LastName As String 
Last name of the user 

This Creates a new user on the server in the database 

when this sub completes a event IMSDK.IMClient.OnSignupComplete is fired

[Visual Basic]
 
'Create a new IMClient
Dim MC as new IMSDK.IMClient
 
 
 
'Call the Listen Sub
MC.Listen()
 
 
 
'Now Try to Sign Up
 MC.BeginSignUp(TxtSignUpEmail.Text, TxtSignUpUsername.Text, TxtSignUpPassword.Text, TxtFirstName.Text, TxtLastName.Text)
 
 
 
'When Sign Up Completes
Private Sub MC_OnSignupComplete(ByVal Username As String, ByVal Password As String) Handles MC.OnSignupComplete
     Debug.WriteLine("username : " & Username & " : Password : " & Password & " Registered")
End Sub

 

Copyright (c) 2007. All rights reserved.