AdsConnection.ReadDataTypeAsync Method

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


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

Syntax

C#

public 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 ResultValue<TValue> parameter contains the read value (Value) and the ErrorCode after execution.

Implements

IAdsSymbolicAccess.ReadDataTypeAsync(String, CancellationToken)

See Also

Reference

AdsConnection Class TwinCAT.Ads Namespace ReadDataType(String) TryReadDataType(String, IDataType)

Beckhoff Automation GmbH & Co. KG 2001-2026