AdsClientTryReadValueT(String, T) Method

Tries to reads the value of a symbol specified with instance path and returns the typed value.


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

Syntax

C#

public AdsErrorCode TryReadValue<T>(
    string name,
    out T value
)

Parameters

name  String

The name.

value  T

The read value of the Symbol.

Type Parameters

T

The value type.

Return Value

AdsErrorCode
The AdsErrorCode.

Implements

IAdsSymbolicAccessTryReadValueT(String, T)

Remarks

This method automatically marshals the read values to appropriate .NET objects if possible. The overall behaviour is described here in the interface description.

Reference

AdsClient Class TryReadValue Overload TwinCAT.Ads Namespace ReadValueT(String) ReadValueAsyncT(String, CancellationToken)

Beckhoff Automation GmbH & Co. KG 2001-2026