Logs an authenticated client out of the server. After the logout sequence has been completed, the server closes the connection with the client.

Namespace: S22.Imap
Assembly: S22.Imap (in S22.Imap.dll) Version: 3.6.0.0 (3.6.0.0)

Syntax

C#
public void Logout()

Implements

IImapClient..::..Logout()()()()

Remarks

Calling this method in non-authenticated state has no effect.

Exceptions

ExceptionCondition
S22.Imap..::..BadServerResponseExceptionAn unexpected response has been received from the server during the logout sequence.
System.IO..::..IOExceptionThere was a failure writing to or reading from the network.
System..::..ObjectDisposedExceptionThe ImapClient object has been disposed.

See Also