SessionDisconnect Method
Disconnects the session from the target.
Namespace: TwinCAT
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public bool Disconnect()Return Value
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.