An application can call the IMessenger::Signout method to sign out of a Communicator account from the connected communications service. The effect is the same as when a user logs out of the server by clicking Sign Out on the Connect menu in Communicator.

It is important that the application releases any unmanaged resources that becomes out-of-scope if the user signs out.

C# Code Example for Signing Out

Copy Code
// Global or class variable
CommunicatorAPI.Messenger communicator;
bool connected = false;

// A simple implementation of signing out.
void Signout()
   if (!connected)

   if (communicator == null)


// Event handler for OnSignout event
void communicator_OnSignout()
	connected = false;
	// Release the unmanaged resource.
	communicator = null;

See Also