AdsConnection.TryDeleteDeviceNotification Method

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
)

Parameters

notificationHandle

Type: System.UInt32
Notification handle.

Return Value

Type: AdsErrorCode
The ADS error code.

Implements

IAdsNotifications.TryDeleteDeviceNotification(UInt32)

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

AdsConnection Class

TwinCAT.Ads Namespace

AddDeviceNotification Overload

AdsConnection.AdsNotification

TryAddDeviceNotification Overload

AddDeviceNotificationAsync Overload