AdsClientUnregisterAdsStateChangedAsync Method

unregister ads state changed as an asynchronous operation.


Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public Task<ResultAds> UnregisterAdsStateChangedAsync(
    EventHandler<AdsStateChangedEventArgs> handler,
    CancellationToken cancel
)

Parameters

handler  EventHandlerAdsStateChangedEventArgs

The handler function to be unregistered.

cancel  CancellationToken

The cancellation token.

Return Value

Task ResultAds
A task that represents the asynchronous 'UnregisterAdsStateChanged' operation. The ResultAds parameter contains the state the ErrorCode of the ADS communication after execution.

Implements

IAdsStateProviderUnregisterAdsStateChangedAsync(EventHandlerAdsStateChangedEventArgs, CancellationToken)

Exceptions

Exception

Condition

ObjectDisposedException

Reference

AdsClient Class TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026