Session.OnConnect Method

Handler function connecting the Session.

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

Syntax

C#

protected virtual IConnection OnConnect(
    bool reconnect
)

VB

Protected Overridable Function OnConnect ( 
    reconnect As Boolean
) As IConnection

Parameters

reconnect

Type: System.Boolean
if set to true [reconnect].

Return Value

Type: IConnection
IConnection.

Reference

Session Class

TwinCAT Namespace