IAdsSymbolicAccess.ReadValueAsync<T>(String, CancellationToken) Method
Reads the typed value of a symbol specified by the instance path 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<T>> ReadValueAsync<T>(
string instancePath,
CancellationToken cancel
)Parameters
|
instancePath String |
Name of the ADS symbol. |
|
cancel CancellationToken |
The cancel token. |
Type Parameters
|
T |
The value type. |
Return Value
Task<ResultValue<T>>
A task that represents the asynchronous read operation. The ResultAnyValue parameter contains the read value
(Value) and the ErrorCode after execution.
Remarks
This method automatically marshals the read values to appropriate .NET objects if possible. The overall behaviour is described here in the interface description.
See Also
Reference
IAdsSymbolicAccess Interface ReadValueAsync Overload TwinCAT.Ads Namespace ReadValue<T>(String) TryReadValue<T>(String, T)
Beckhoff Automation GmbH & Co. KG 2001-2026