Cancel Method

Cancel the current operation.

Syntax

object.Cancel

The object placeholder represents an expression that evaluates to an InternetMail object.

Return Type

Integer

Remarks

The Cancel method cancels the current operation, returning control to the application. This method is typically used to either cancel the retrieval of a message from the mail server, or the delivery of a message. Once the operation has been canceled, the OnCancel event will fire.

This method will return value of zero if the action was successful. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

See Also

Reset Method, OnCancel Event


Copyright © 2008 Catalyst Development Corporation. All rights reserved.