IAdsSymbolicAccessReadDataTypeAsync Method

Reads/Determines the DataType of the specified type as an asynchronous operation.


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

Syntax

C#

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

Parameters

typeName  String

Name of the data type.

cancel  CancellationToken

The cancel token.

Return Value

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

Reference

IAdsSymbolicAccess Interface TwinCAT.Ads Namespace ReadDataType(String) TryReadDataType(String, IDataType)

Beckhoff Automation GmbH & Co. KG 2001-2026