Session Class

Abstract Session base class.

Inheritance Hierarchy

System.Object
  TwinCAT.Session
    TwinCAT.Ads.AdsSession
Namespace:  TwinCAT
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public abstract class Session : ISession, 
    IConnectionStateProvider, IDisposable

VB

Public MustInherit Class Session
    Implements ISession, IConnectionStateProvider, IDisposable

The Session type exposes the following members.

Properties

 

Name

Description

Session Class 1:

AddressSpecifier

Gets the communication endpoint address string representation.

Session Class 2:

Connection

Gets the (established) connection.

Session Class 3:

Session Class 4:

ConnectionState

Gets the current Connection state of the Session

Session Class 5:

Disposed

Gets a value indicating whether this Session is disposed.

Session Class 6:

EstablishedAt

Gets the UTC time when the session was established.

Session Class 7:

Id

Gets the Session Identifier

Session Class 8:

IsConnected

Gets a value indicating whether this instance is connected.

Session Class 9:

Name

Gets the name of the session

Session Class 10:

SymbolServer

Gets the symbol server.

Methods

 

Name

Description

Session Class 11:

Close

Closes this ISession

Session Class 12:

Connect

Connects the session.

Session Class 13:

Disconnect

Disconnects the session from the target.

Session Class 14:

Dispose.

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Session Class 15:

Dispose(Boolean)

Releases unmanaged and - optionally - managed resources.

Session Class 16:

Equals

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

Session Class 17:

Finalize

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

Session Class 18:

GetHashCode

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

Session Class 19:

GetSessionName

Gets the name/string identifier of the session.

Session Class 20:

GetType

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

Session Class 21:

MemberwiseClone

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

Session Class 22:

OnConnect

Handler function connecting the Session.

Session Class 23:

OnCreateSymbolServer

Handler function creating the ISymbolServer

Session Class 24:

OnDisconnect

Handler function disconnecting the session.

Session Class 25:

OnGetAddress

Handler function getting the address of the session.

Session Class 26:

ToString

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

Events

 

Name

Description

Session Class 27:

Session Class 28:

ConnectionStateChanged

Occurs when connection status of the IConnectionStateProvider has been changed.

Fields

 

Name

Description

Session Class 29:

connection

The (established) connection

Reference

TwinCAT Namespace

TwinCAT.ISession

System.IDisposable