ISession.EnsureConnection Method

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

Namespace:  TwinCAT
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

IConnection EnsureConnection()

Return Value

Type: IConnection
IConnection.

Remarks

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

Reference

ISession Interface

TwinCAT Namespace