AdsClient.RegisterSymbolVersionChanged Method

Registers for an AdsSymbolVersionChanged event as an asynchronous operation.

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

Syntax

C#

public AdsErrorCode RegisterSymbolVersionChanged(
    EventHandler<AdsSymbolVersionChangedEventArgs> handler
)

Parameters

handler

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

Return Value

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

Implements

IAdsSymbolChangedProvider.RegisterSymbolVersionChanged(EventHandler.AdsSymbolVersionChangedEventArgs.)

Exceptions

Exception

Condition

ObjectDisposedException

Reference

AdsClient Class

TwinCAT.Ads Namespace