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

IConnection Interface 1:

IConnection Interface 2:

ConnectionState

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

IConnection Interface 3:

Id

Gets the Connection Identifier .

IConnection Interface 4:

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.

IConnection Interface 5:

Session

Gets the session that initiated this IConnection

IConnection Interface 6:

Timeout

Gets the timeout (in milliseconds)

Methods

 

Name

Description

IConnection Interface 7:

Close

Closes this IConnection

IConnection Interface 8:

Connect

(Re)Connects the IConnection when disconnected.

IConnection Interface 9:

Disconnect

Disconnects this IConnection.

Events

 

Name

Description

IConnection Interface 10:

IConnection Interface 11:

ConnectionStateChanged

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

Reference

TwinCAT Namespace