Hunny Software Library Reference

Imap4Client.Disconnect Method 

Closes the connection to the IMAP4 server.

[Visual Basic]
Public Sub Disconnect()
[C#]
public void Disconnect();

Remarks

This method closes the connection to the IMAP4 server.

The correct way to end an IMAP4 session is to send a LOGOUT command, which causes the server to perform any necessary closing operations and close the connection. Therefore you should almost always call Logout immediately before you call Disconnect.

You may safely call this method even if the client is not connected.

See Also

Imap4Client Class | Hunny.Mail Namespace | Imap4Client.Logout method