Session.Disconnect Method

Disconnects the session from the target.

Namespace:  TwinCAT
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public bool Disconnect()

VB

Public Function Disconnect As Boolean

Return Value

Type: Boolean
true if XXXX, false otherwise.

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