DisconnectServer

Description

Disconnects a client application from a server application.

Applies to

Connection objects

Syntax

connection.DisconnectServer ( )

Returns

Long. Returns 0 if it succeeds and a negative value if an error occurs.

Usage

After disconnecting from the server application, the client application needs to destroy the Connection object.

DisconnectServer causes all remote objects and proxy objects created for the client connection to be destroyed.

Examples

Example 1

In this example, the client application disconnects from the server application using the Connection object myconnect:

myconnect.DisconnectServer()

destroy myconnect

See also