ISession Interface

Interface ISession

Namespace:  TwinCAT
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public interface ISession : IConnectionStateProvider

VB

Public Interface ISession
    Inherits IConnectionStateProvider

The ISession type exposes the following members.

Properties

 

Name

Description

ISession Interface 1:

AddressSpecifier

Gets the communication endpoint address string representation.

ISession Interface 2:

Connection

Gets the Connection object.

ISession Interface 3:

ISession Interface 4:

ConnectionState

Gets the current Connection state of the IConnectionStateProvider (Inherited from IConnectionStateProvider.)

ISession Interface 5:

EstablishedAt

Gets the UTC time when the session was established.

ISession Interface 6:

Id

Gets the Session Id

ISession Interface 7:

IsConnected

Gets a value indicating whether the session is connected.

Methods

 

Name

Description

ISession Interface 8:

Close

Closes this ISession

ISession Interface 9:

Connect

Connects the session and returns the established IConnection object.

ISession Interface 10:

Disconnect

Disconnects the ISession

Events

 

Name

Description

ISession Interface 11:

ISession Interface 12:

ConnectionStateChanged

Occurs when connection status of the IConnectionStateProvider has been changed. (Inherited from IConnectionStateProvider.)

Reference

TwinCAT Namespace