ConnectionStateChangedEventArgs Class

Event arguments for the Connection status changed event.

Inheritance Hierarchy

System.Object
  System.EventArgs
    TwinCAT.ConnectionStateChangedEventArgs
      TwinCAT.SessionConnectionStateChangedEventArgs
Namespace:  TwinCAT
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public class ConnectionStateChangedEventArgs : EventArgs

The ConnectionStateChangedEventArgs type exposes the following members.

Constructors

 

Name

Description

ConnectionStateChangedEventArgs Class 1:

ConnectionStateChangedEventArgs(ConnectionStateChangedReason, ConnectionState, ConnectionState)

Constructs the ConnectionStateChangedEventArgs arguments.

ConnectionStateChangedEventArgs Class 2:

ConnectionStateChangedEventArgs(ConnectionStateChangedReason, ConnectionState, ConnectionState, Exception)

Constructs the ConnectionStateChangedEventArgs arguments.

Properties

 

Name

Description

ConnectionStateChangedEventArgs Class 3:

Exception

Exception, (only for Error

ConnectionStateChangedEventArgs Class 4:

NewState

New connection state

ConnectionStateChangedEventArgs Class 5:

OldState

Old connection state

ConnectionStateChangedEventArgs Class 6:

Reason

Reason for the event

Methods

 

Name

Description

ConnectionStateChangedEventArgs Class 7:

Equals

Determines whether the specified object is equal to the current object. (Inherited from Object.)

ConnectionStateChangedEventArgs Class 8:

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

ConnectionStateChangedEventArgs Class 9:

GetHashCode

Serves as the default hash function. (Inherited from Object.)

ConnectionStateChangedEventArgs Class 10:

GetType

Gets the Type of the current instance. (Inherited from Object.)

ConnectionStateChangedEventArgs Class 11:

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

ConnectionStateChangedEventArgs Class 12:

ToString

Returns a string that represents the current object. (Inherited from Object.)

Reference

TwinCAT Namespace