DisconnectServer

Description

Disconnects a client application from a server application.

Applies to

Connection objects

Syntax

connection.DisconnectServer ( )

Argument

Description

connection

The name of the Connection object used to establish the connection you want to delete

Returns

Long. Returns 0 if it succeeds and one of the following values 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