ConnectionStateChangedEventArgs Constructor (ConnectionStateChangedReason, ConnectionState, ConnectionState, Exception)

Constructs the ConnectionStateChangedEventArgs arguments.

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

Syntax

C#

public ConnectionStateChangedEventArgs(
    ConnectionStateChangedReason reason,
    ConnectionState newState,
    ConnectionState oldState,
    Exception e
)

VB

Public Sub New ( 
    reason As ConnectionStateChangedReason,
    newState As ConnectionState,
    oldState As ConnectionState,
    e As Exception
)

Parameters

reason

Type: TwinCAT.ConnectionStateChangedReason
The reason.

newState

Type: TwinCAT.ConnectionState
The new state.

oldState

Type: TwinCAT.ConnectionState
The old state.

e

Type: System.Exception
The e.

Reference

ConnectionStateChangedEventArgs Class

ConnectionStateChangedEventArgs Overload

TwinCAT Namespace