AdsClient.TryDeleteDeviceNotification Method (UInt32, Int32)

Deletes a registered notification.

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

Syntax

C#

public AdsErrorCode TryDeleteDeviceNotification(
    uint notificationHandle,
    int timeout
)

Parameters

notificationHandle

Type: System.UInt32
Notification handle.

timeout

Type: System.Int32
The timeout.

Return Value

Type: AdsErrorCode
The ADS error code.

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

Remarks

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

Reference

AdsClient Class

TryDeleteDeviceNotification Overload

TwinCAT.Ads Namespace

AddDeviceNotification Overload

IAdsNotifications.AdsNotification

TryAddDeviceNotification Overload

AddDeviceNotificationAsync Overload