SessionConnectionStateChangedEventArgs Class

EventArguments for the ConnectionStatusChanged events.

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 SessionConnectionStateChangedEventArgs : ConnectionStateChangedEventArgs

VB

Public Class SessionConnectionStateChangedEventArgs
    Inherits ConnectionStateChangedEventArgs

The SessionConnectionStateChangedEventArgs type exposes the following members.

Constructors

 

Name

Description

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

Initializes a new instance of the SessionConnectionStateChangedEventArgs class.

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

Initializes a new instance of the SessionConnectionStateChangedEventArgs class.

Methods

 

Name

Description

Equals

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

Finalize

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

GetHashCode

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

GetType

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

MemberwiseClone

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

ToString

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

Fields

 

Name

Description

Connection

The connection

Exception

Exception, (only for Error (Inherited from ConnectionStateChangedEventArgs.)

NewState

New connection state (Inherited from ConnectionStateChangedEventArgs.)

OldState

Old connection state (Inherited from ConnectionStateChangedEventArgs.)

Reason

Reason for the event (Inherited from ConnectionStateChangedEventArgs.)

Session

The session

Reference

TwinCAT Namespace

TwinCAT.ConnectionStateChangedEventArgs