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)
Exceptions
Exception |
Condition |
---|---|
Remarks
Closes (and disposes) the underlying IConnection The Session itself will not be Disposed and can be reconnected.