IAdsStateProvider.RegisterAdsStateChangedAsync Method
Registers for AdsStateChanged events as an asynchronous operation.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads.Abstractions (in
TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229
Syntax
C#
Task<ResultAds> RegisterAdsStateChangedAsync(
EventHandler<AdsStateChangedEventArgs> handler,
CancellationToken cancel
)
Parameters
handler |
Type: System.EventHandler.AdsStateChangedEventArgs. |
cancel |
Type: System.Threading.CancellationToken |
Return Value
Type: Task.ResultAds.
A task that represents the asynchronous
'RegisterAdsStateChanged' operation. The ResultAds parameter
contains the state the ErrorCode of the ADS
communication after execution.
Remarks
Not all ADS Servers support the State ADS Request.