Pop3Abort Method
Forces MailBee to cancel all pending operations and close all opened connections as soon as possible.

Namespace: MailBee.Pop3Mail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.3.1 build 666 for .NET 4.5
public void Abort()

A method which was in progress when Abort method has been called will throw MailBeeUserAbortException (unless ThrowExceptions is not false). If the component was not doing any work at the moment (IsBusy was false), the connection is aborted but no exception is thrown.

This method tries to abort the current network operation immediately, which works for all cases except of resolving a domain name into IP address. Due to .NET framework limitations, this operation cannot be aborted. Thus, sometimes you may experience a several seconds delay between calling this method and getting MailBeeUserAbortException (the time needed for DNS resolve to complete).

Note Note
No events will be raised after this method has been called.
To restore the component from the aborted state, the developer can use ResetState method.
See Also