Internet Direct (Indy)
Home
PreviousUpNext
TIdIMAP4.Disconnect Method ()

Closes an IMAP4 session and connection.

Pascal
procedure Disconnect; overload;

Disconnect is an overloaded procedure in TIdIMAP4 that closes an IMAP4 session and connection. 

Disconnect normally requires that the session still be Connected in order to send the LOGOUT command. Calling Disconnect with no arguments causes the session to be closed without notifying the peer connection and without raising an exception if the connection is already closed. 

Disconnect sets ConnectionState to the value csNonAuthenticated. 

Please note that the contents of the Capabilities property are cleared in Disconnect. 

Disconnect is automatically called by the destructor when Connected contains True.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.