|
MessengerYouLike
|
|
This Method Removes IMSDK.FileTransfer Object from File Transfer Collection
public Boolean Remove(IMSDK.FileTransfer FileTransferObj);
Public Function Remove(ByVal FileTransferObj As IMSDK.FileTransfer) As Boolean
|
Parameters |
Description |
|
ByVal FileTransferObj As IMSDK.FileTransfer |
File Transfer Object to remove |
In Most Cases the Object is removed automatically but this method is provided for developers to remove the object as per there requirements
[Visual Basic] 'Create a new IMClient Dim MC as new IMSDK.IMClient 'Create a new MCUser Public MCUser As New IMSDK.User '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) MCUser = New IMSDK.User MCUser = UserObject Msgbox("Username is " & MCUser.Username) 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 private function RemoveFT(ByVal FileTransferObj As IMSDK.FileTransfer) as Boolean return MCUser.FileTransfers.Remove(FileTransferObj) end function