Dart Smtp, Pop, Imap Controls
Abort Method
Description
Release all buffers, close the connection, and abort any blocking method.
Syntax
Visual Basic
Public Sub Abort() 
Remarks

Use this method at any time to abruptly release all resources. The State property is tcpClosed when this method returns.

Destruction of the control automatically uses this method to release all resources.

When a blocking call is in progress (like Get), and Abort is called with an immediate call to a second Get (or other method), the first Get method does not return until the subsequent Get method(s) complete. It will return a mailAbort error.

Calling Abort will raise a mailAbort Error event.

Note For TCP-based controls, the Abort method performs a "hard close", with a socket LINGER option time of 0. To prevent the socket from entering a WAIT_STATE, and to immediately release it for reuse, use Abort instead of Close.

CAUTION Use the Logout method in most cases, as buffers are cleared and communications terminate gracefully. Use the Abort method only when the application in abruptly terminated while a blocking method is executing or under any other unusual circumstances.

See Also

Imap Object  | Imap Members


PowerTCP Mail for ActiveX Documentation Version 2.13
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic