Session.Disconnect Method

Disconnects the session from the target.

Namespace:  TwinCAT
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

public bool Disconnect()

Return Value

Type: Boolean
true if the Session is disconnected, false otherwise (the connection was disconnected before)

Implements

ISession.Disconnect.

Exceptions

Exception

Condition

ObjectDisposedException

Remarks

Closes (and disposes) the underlying IConnection The Session itself will not be Disposed and can be reconnected.

Reference

Session Class

TwinCAT Namespace