AdsClient.DeleteDeviceNotificationAsync Method
Deletes a registered notification asynchronously.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 6.0.328+39e3229
Syntax
C#
public Task<ResultAds> DeleteDeviceNotificationAsync(
uint notificationHandle,
CancellationToken cancel
)
Parameters
notificationHandle |
Type: System.UInt32 |
cancel |
Type: System.Threading.CancellationToken |
Return Value
Type: Task.ResultAds.
A task that represents the asynchronous
'DeleteDeviceNotification' operation. The ErrorCode property
contains the ADS error code after execution.
Remarks
This is the complementary method to AddDeviceNotificationAsync Overload overloads and should be called when the notification is not needed anymore the free TwinCAT realtime resources.