IAdsSymbolicAccess.ReadDataTypeAsync Method

Call this method to obtain information about the specified data type.

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

Syntax

C#

Task<ResultValue<IDataType>> ReadDataTypeAsync(
    string typeName,
    CancellationToken cancel
)

Parameters

typeName

Type: System.String
Name of the data type.

cancel

Type: System.Threading.CancellationToken
The cancel token.

Return Value

Type: Task.ResultValue.IDataType..
A task that represents the asynchronous 'ReadDataType' operation. The ResultValue.TValue. parameter contains the read value (Value) and the ErrorCode after execution.

Reference

IAdsSymbolicAccess Interface

TwinCAT.Ads Namespace

IAdsSymbolicAccess.ReadDataType(String)

IAdsSymbolicAccess.TryReadDataType(String, IDataType.)