SessionConnectionStateChangedEventArgs Constructor (ConnectionStateChangedReason, ConnectionState, ConnectionState, ISession, IConnection, Exception)

Initializes a new instance of the SessionConnectionStateChangedEventArgs class.

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

Syntax

C#

public SessionConnectionStateChangedEventArgs(
    ConnectionStateChangedReason reason,
    ConnectionState newState,
    ConnectionState oldState,
    ISession session,
    IConnection connection,
    Exception? e
)

Parameters

reason

Type: TwinCAT.ConnectionStateChangedReason
The reason.

newState

Type: TwinCAT.ConnectionState
The new state.

oldState

Type: TwinCAT.ConnectionState
The old state.

session

Type: TwinCAT.ISession
The session.

connection

Type: TwinCAT.IConnection
The connection.

e

Type: System.Exception
The e.

Reference

SessionConnectionStateChangedEventArgs Class

SessionConnectionStateChangedEventArgs Overload

TwinCAT Namespace