IAdsSymbolChangedProvider.RegisterSymbolVersionChangedAsync Method

Registers the symbol version changed asynchronously.

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

Syntax

C#

Task<ResultAds> RegisterSymbolVersionChangedAsync(
    EventHandler<AdsSymbolVersionChangedEventArgs> handler,
    CancellationToken cancel
)

Parameters

handler

Type: System.EventHandler.AdsSymbolVersionChangedEventArgs.
The handler function to register.

cancel

Type: System.Threading.CancellationToken
The cancellation token.

Return Value

Type: Task.ResultAds.
A task that represents the asynchronous 'RegisterSymbolVersionChanged' operation. The ResultAds parameter contains the value ErrorCode of the ADS communication after execution.

Reference

IAdsSymbolChangedProvider Interface

TwinCAT.Ads Namespace