DisconnectedEventArgsIsNormalShutdown Property
Indicates whether this event occurred as a result of calling Disconnect method so that the proper logout command was issued to the server, or the connection was terminated.

Namespace: MailBee
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public bool IsNormalShutdown { get; }

Property Value

Type: Boolean
true if logout command (such as QUIT for POP3 and SMTP protocols or LOGOUT for IMAP4) has been successfully issued prior to actual disconnecting from the server; otherwise, false.
Remarks
You can use this property value to learn whether the connection was closed properly or not. This is especially important in the case of Pop3.Disconnected event, since the POP3 server will not actually delete messages flagged for deletion during the POP3 session if the connection was terminated rather than properly closed.
See Also