|
MessengerYouLike
|
|
This Method Allows Users to Rename a Group
public BeginRenameGroup(String GroupUID, String NewGroupName);
Public Sub BeginRenameGroup(ByVal GroupUID As String, ByVal NewGroupName As String)
|
Parameters |
Description |
|
ByVal GroupUID As String |
Group ID of Group to be Removed |
|
ByVal NewGroupName As String |
New Group Name |
Rename a Group By Supplying Group ID and NewGroupName,When this Completes a event IMSDK.IMClient.OnRenameGroupCompleted is fired
[Visual Basic] 'Create a new IMClient Dim MC as new IMSDK.IMClient 'Call the Listen Sub MC.Listen() 'Now Try to login MC.BeginLogin(TxtUsername.Text,TxtPassword.Text) 'if username and password is valid then Private Sub MC_OnLoggedin(ByVal UserObject As IMSDK.User) Handles MC.OnLoggedin Debug.WriteLine("Username logged in : " & MCUser.Username & " , " & MCUser.Password) End Sub 'if username or password is invalid then Private Sub MC_OnUsernameOrPasswordInvalid(ByVal Username As String, ByVal Password As String) Handles MC.OnUsernameOrPasswordInvalid Debug.WriteLine("Username password invalid : " & Username & " , " & Password) End Sub 'Now Remove The Group MC.BeginRenameGroup(TxtGroupUID.Text, TxtNewGroupName.Text) 'When Completed event is Fired Private Sub MC_OnRenameGroupCompleted() Handles MC.OnRenameGroupCompleted Debug.WriteLine("MC_OnRenameGroupCompelted") End Sub