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

AddressSpecifier

Gets the communication endpoint address string representation.

Connection

Gets the Connection object.

ConnectionState

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

EstablishedAt

Gets the UTC time when the session was established.

Id

Gets the Session Id

IsConnected

Gets a value indicating whether the session is connected.

Methods

 

Name

Description

Close

Closes this ISession

Connect

Connects the session and returns the established IConnection object.

Disconnect

Disconnects the ISession

Events

 

Name

Description

ConnectionStateChanged

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

Reference

TwinCAT Namespace