AdsClientDeleteVariableHandle Method

Releases the specified symbol/variable handle synchronously.


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

Syntax

C#

public void DeleteVariableHandle(
    uint variableHandle
)

Parameters

variableHandle  UInt32

Handle of the ADS variable

Return Value

The ADS error code.

Implements

IAdsHandleDeleteVariableHandle(UInt32)

Remarks

It is a good practice to release all variable handles after use to regain internal resources in the TwinCAT subsystem. The composite method to this TryDeleteVariableHandle(UInt32) is the TryCreateVariableHandle(String, UInt32)

Reference

AdsClient Class TwinCAT.Ads Namespace CreateVariableHandle(String) TryDeleteVariableHandle(UInt32) DeleteVariableHandleAsync(UInt32, CancellationToken)

Beckhoff Automation GmbH & Co. KG 2001-2026