Hunny Software Library Reference

Imap4Client.Logout Method 

Sends a LOGOUT command.

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

Remarks

A LOGOUT command ends the current IMAP4 session. In response to a LOGOUT command, the IMAP4 server is required to send a BYE response and then close the connection. Therefore, after calling Logout, you must call Connect again to reconnect to the server before you can call any methods that send commands.

Exceptions

Exception TypeCondition
ExceptionIf a network or protocol error occurs.

See Also

Imap4Client Class | Hunny.Mail Namespace | ByeResponse | LOGOUT command in the IMAP4 specification