IAdsStateProvider Interface

Interface IAdsStateProvider

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public interface IAdsStateProvider

The IAdsStateProvider type exposes the following members.

Methods

 

Name

Description

IAdsStateProvider Interface 1:

ReadState

Reads the ADS status and the device status from an ADS server.

IAdsStateProvider Interface 2:

ReadStateAsync

Reads the ADS status and the device status from an ADS server.

IAdsStateProvider Interface 3:

RegisterAdsStateChangedAsync

Registers for AdsStateChanged events as an asynchronous operation.

IAdsStateProvider Interface 4:

TryReadState

Reads the ADS status and the device status from an ADS server. Unlike the ReadState method this method does not call an exception on failure. Instead an AdsErrorCode is returned. If the return value is equal to AdsErrorCode.NoError the call was successful.

IAdsStateProvider Interface 5:

UnregisterAdsStateChangedAsync

Registers for AdsStateChanged events as an asynchronous operation.

Events

 

Name

Description

IAdsStateProvider Interface 6:

AdsStateChanged

Occurs when the AdsState of the target system has been changed.

Reference

TwinCAT.Ads Namespace