IConnection Interface

Interface IConnection

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

Syntax

C#

public interface IConnection : IConnectionStateProvider

VB

Public Interface IConnection
    Inherits IConnectionStateProvider

The IConnection type exposes the following members.

Properties

 

Name

Description

ConnectionState

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

Id

Gets the Connection Identifier .

IsConnected

Gets a value indicating whether the local ADS port was opened successfully. It does not indicate if the target port is available. Use the method ReadState to determine if the target port is available.

Session

Gets the session that initiated this IConnection

Timeout

Gets the timeout (in milliseconds)

Methods

 

Name

Description

Close

Closes this IConnection

Connect

(Re)Connects the IConnection when disconnected.

Disconnect

Disconnects this IConnection.

Events

 

Name

Description

ConnectionStateChanged

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

Reference

TwinCAT Namespace