AdsConnection.UnregisterSymbolVersionChangedAsync Method

Unregisters the symbol version changed asynchronous.

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

Syntax

C#

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

Parameters

handler

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

cancel

Type: System.Threading.CancellationToken
The cancellation token.

Return Value

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

Implements

IAdsSymbolChangedProvider.UnregisterSymbolVersionChangedAsync(EventHandler.AdsSymbolVersionChangedEventArgs., CancellationToken)

Exceptions

Exception

Condition

ObjectDisposedException

Reference

AdsConnection Class

TwinCAT.Ads Namespace