AdsConnection.TryCreateVariableHandle Method

Read (determine) the Symbol handle by its name/path

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

Syntax

C#

public AdsErrorCode TryCreateVariableHandle(
    string symbolName,
    out uint variableHandle
)

Parameters

symbolName

Type: System.String
SymbolName / Path.

variableHandle

Type: System.UInt32.
The handle.

Return Value

Type: AdsErrorCode
AdsErrorCode.

Implements

IAdsHandle.TryCreateVariableHandle(String, UInt32.)

Reference

AdsConnection Class

TwinCAT.Ads Namespace