AdsSessionBaseEnsureConnection Method

Ensures, that the ISession is connected and returns the IConnection object.


Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public AdsConnection EnsureConnection()

Return Value

AdsConnection
IConnection.

Exceptions

Exception

Condition

NotImplementedException

Remarks

If the session is actually not connected an exception will be thrown.

Reference

AdsSessionBase Class TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026