AdsClientDeleteDeviceNotificationAsync Method

Deletes a registered notification asynchronously.


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

Syntax

C#

public Task<ResultAds> DeleteDeviceNotificationAsync(
    uint notificationHandle,
    CancellationToken cancel
)

Parameters

notificationHandle  UInt32

The client-side Notification handle.

cancel  CancellationToken

The cancellation token.

Return Value

Task ResultAds
A task that represents the asynchronous 'DeleteDeviceNotification' operation. The ErrorCode property contains the ADS error code after execution.

Implements

IAdsNotificationsDeleteDeviceNotificationAsync(UInt32, CancellationToken)

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

Remarks

This is the complementary method to {0} Overload overloads and should be called when the notification is not needed anymore the free TwinCAT realtime resources.

Reference

AdsClient Class TwinCAT.Ads Namespace {0} Overload AdsNotification {0} Overload {0} Overload

Beckhoff Automation GmbH & Co. KG 2001-2026