Disconnects a client application from a server application.
Connection objects
connection.DisconnectServer ( )
Long. Returns 0 if it succeeds and a negative value if an error occurs.
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.
In this example, the client application disconnects from the server application using the Connection object myconnect:
myconnect.DisconnectServer()
destroy myconnect