AdsClient.ReadDataTypeAsync Method
read data type as an asynchronous operation.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 6.0.328+39e3229
Syntax
C#
public Task<ResultValue<IDataType>> ReadDataTypeAsync(
string typeName,
CancellationToken cancel
)
Parameters
typeName |
Type: System.String |
cancel |
Type: System.Threading.CancellationToken |
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.
Exceptions
Exception |
Condition |
---|---|
typeName | |