wodPop3 ActiveX Control - Disconnected Method
      
 

Description

Called when wodPOP3 component disconnects from the server.


Return Type

None  


Syntax

object.Disconnected Owner, ErrorCode, ErrorText



The Disconnected Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodPopClientNotify.
Owner Required. A wodPop3 object. Reference to wodPop3 component instance that called this method.
ErrorCode Required. A Long value. Holds error number, if any.
ErrorText Required. A String value. Text description of the error, if any.

Remarks

NOTE: This method is called only if you implemented IwodPop3ClientNotify interface in your application, and wodPop3.Notification property has received reference to instance of your implementation.

Disconnected is a notification method called by wodPop3 when it disconnects from the server, either by using Disconnect method, or because server closed the connection. If error occurred, ErrorCode and ErrorText arguments will provide information about the error.

Disconnected method can be called also as a result of calling Connect method - if disconnection occurred because server was unavailable, bad login/password was supplied etc.

At this point wodPop3.Messages collection is not destroyed - you still have access to all downloaded messages from the previous session. They will be destroyed on next call to Connect method.