IValueAnySymbol.ReadAnyValueAsync Method (Type, CancellationToken)

Reads the (AnyType) value asynchronously.

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

Syntax

C#

Task<ResultReadValueAccess> ReadAnyValueAsync(
    Type managedType,
    CancellationToken cancel
)

Parameters

managedType

Type: System.Type
Managed type of the value to read.

cancel

Type: System.Threading.CancellationToken
The cancellation token.

Return Value

Type: Task.ResultReadValueAccess.
A task object that is representing the asynchronous 'ReadAnyValue' operation. The result will be returned in a ResultReadValueAccess, which contains the Value and the ErrorCode.

Reference

IValueAnySymbol Interface

ReadAnyValueAsync Overload

TwinCAT.TypeSystem Namespace