Session Methods

The Session type exposes the following members.

Methods

 

Name

Description

Session Methods 1:

Close

Closes this ISession

Session Methods 2:

Connect

Connects the session.

Session Methods 3:

ConnectAndWaitAsync

Connects the session.

Session Methods 4:

ConnectAsync

Connects the session.

Session Methods 5:

Disconnect

Disconnects the session from the target.

Session Methods 6:

Dispose

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

Session Methods 7:

Dispose(Boolean)

Releases unmanaged and - optionally - managed resources.

Session Methods 8:

EnsureConnection

Ensures, that the ISession is connected and returns the IConnection object.

Session Methods 9:

Equals

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

Session Methods 10:

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 Methods 11:

GetHashCode

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

Session Methods 12:

GetSessionName

Gets the name/string identifier of the session.

Session Methods 13:

GetType

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

Session Methods 14:

MemberwiseClone

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

Session Methods 15:

OnConnect

Handler function connecting the Session.

Session Methods 16:

OnConnectAndWaitAsync

Handler function connecting the Session.

Session Methods 17:

OnConnectAsync

Handler function connecting the Session.

Session Methods 18:

OnConnectionStateChanged

Handles the [E:ConnectionStateChanged] event.

Session Methods 19:

OnCreateSymbolServer

Handler function creating the ISymbolServer

Session Methods 20:

OnDisconnect

Handler function disconnecting the session.

Session Methods 21:

OnGetAddress

Handler function getting the address of the session.

Session Methods 22:

ToString

Returns a String that represents this instance.
(Overrides ObjectToString)

Reference

Session Class TwinCAT Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026