DOFConnectiondisconnect Method OpenDOF Object Access Library
Request that a connection be terminated.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public void disconnect()
Remarks

Request that a connection be terminated. Requests to establish the connection are balanced against requests to disconnect. Only when there are equal numbers will the connection be disconnected. Note that this balance is over all DOFConnection instances that refer to a common connection, and that a given DOFConnection is isolated and cannot effect the balance of other DOFConnections. This isolation ensures that one DOFConnection cannot adversely affect another.

Once there are no outstanding connection requests from any DOFConnection instances then the connection is disconnected.

Will also stop any related server and disconnect any related connection.

See Also

Reference