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 (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public class ConnectionStateChangedEventArgs : EventArgs

VB

Public Class ConnectionStateChangedEventArgs
    Inherits 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.

Methods

 

Name

Description

ConnectionStateChangedEventArgs Class 3:

Equals

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

ConnectionStateChangedEventArgs Class 4:

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 5:

GetHashCode

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

ConnectionStateChangedEventArgs Class 6:

GetType

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

ConnectionStateChangedEventArgs Class 7:

MemberwiseClone

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

ConnectionStateChangedEventArgs Class 8:

ToString

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

Fields

 

Name

Description

ConnectionStateChangedEventArgs Class 9:

Exception

Exception, (only for Error

ConnectionStateChangedEventArgs Class 10:

NewState

New connection state

ConnectionStateChangedEventArgs Class 11:

OldState

Old connection state

ConnectionStateChangedEventArgs Class 12:

Reason

Reason for the event

Reference

TwinCAT Namespace