Session.Connect Method

Connects the session.

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

Syntax

C#

public IConnection Connect()

VB

Public Function Connect As IConnection

Return Value

Type: IConnection
true if XXXX, false otherwise.

Implements

ISession.Connect.

Exceptions

Exception

Condition

ObjectDisposedException

ObjectDisposedException

Remarks

The IConnection will be valid until the ISession is disconnected via the Disconnect. method or the Dispose method is called. Any possible resurrections after communication losses will be done transparently within the IConnection so that the IConnection instance and ISession instance remains.

Reference

Session Class

TwinCAT Namespace