Abort Method  
 

Aborts the current session and terminates the connection.

Syntax

object.Abort

Parameters

None.

Return Value

A value of zero is returned if the break signal was sent successfully. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

Remarks

The Abort method sends an abort sequence to the server and the connection to the server is terminated. Once this method returns, the client is no longer connected to the server. If a program is currently executing on the server at the time this function is called, that program may be terminated as a result of the session being aborted. Applications should normally call the Disconnect method to gracefully disconnect from the server and should only use this function when the connection must be aborted immediately.

See Also

Break Method, Cancel Method