IConnection Interface
Interface IConnection
Namespace: TwinCAT
Assembly: TwinCAT.Ads.Abstractions (in
TwinCAT.Ads.Abstractions.dll) Version:
7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public interface IConnection : IConnectionStateProviderThe IConnection type exposes the following members.
Properties
|
|
Name |
Description |
|---|---|---|
|
|
Gets the configuration. | |
|
|
Gets the current Connection state of the IConnectionStateProvider | |
|
|
Gets/Sets the default value encoding. | |
|
|
Gets the Connection Identifier . | |
|
|
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. | |
|
|
Gets the connection logger interface. | |
|
|
Gets the logger factory. | |
|
|
Gets the session that initiated this IConnection | |
|
|
Gets/Sets the symbol encoding. | |
|
|
Gets the timeout (in milliseconds) |
Methods
|
|
Name |
Description |
|---|---|---|
|
|
Closes this IConnection | |
|
|
(Re)Connects the IConnection when disconnected. | |
|
|
Connects the and wait asynchronous. | |
|
|
Connects the IConnection asynchronously when disconnected. | |
|
|
Disconnects this IConnection. | |
|
|
Disconnects the IConnection when connected (asynchronously) |
Events
|
|
Name |
Description |
|---|---|---|
|
|
Occurs when connection status of the IConnectionStateProvider
has been changed. |
- IConnectionStateProvider.ConnectionState Property
- IConnection.DefaultValueEncoding Property
- IConnection.Id Property
- IConnection.IsConnected Property
- IConnection.Session Property
- IConnection.Timeout Property
- IConnection.Close Method
- IConnection.Connect Method
- IConnection.Disconnect Method
- IConnectionStateProvider.ConnectionStateChanged Event