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

When Logged in user is Logged out

C#
public event OnLoggedOut;
Visual Basic
Public Event OnLoggedOut(ByVal Username As String, ByVal Time As String)
Return Values 
Description 
ByVal Username As String 
Username of the Logged out User 
ByVal Time As String 
Time on which User was logged out 

When user is logged out by calling the sub IMSDK.IMClient.BeginLogOut 

after this event you can call sub IMSDK.IMClient.StopListening or when the application it self closes

[Visual Basic]
 Private Sub MC_OnLoggedOut(ByVal Username As String, ByVal Time As String) Handles MC.OnLoggedOut
       Debug.WriteLine("On Logged Out")
       MC.StopListening()
    End Sub
Copyright (c) 2007. All rights reserved.