ConnectionStateChangedEventArgs Constructor (ConnectionStateChangedReason, ConnectionState, ConnectionState)

Constructs the ConnectionStateChangedEventArgs arguments.

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

Syntax

C#

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

Parameters

reason

Type: TwinCAT.ConnectionStateChangedReason
The reason.

newState

Type: TwinCAT.ConnectionState
The new state.

oldState

Type: TwinCAT.ConnectionState
The old state.

Reference

ConnectionStateChangedEventArgs Class

ConnectionStateChangedEventArgs Overload

TwinCAT Namespace