AdsConnectionTryReadValue(String, Type, Object) Method
Tries to the value of a symbol specified as instance path and returns the value as (boxed) object.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public AdsErrorCode TryReadValue(
string name,
Type? type,
out Object?? value
)Parameters
|
name String |
The name. |
|
type Type |
Managed type of the ADS symbol. |
|
value Object |
The value of the Symbol. |
Exceptions
|
Exception |
Condition |
|---|---|
|
name | |
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
AdsConnection Class TryReadValue Overload TwinCAT.Ads Namespace ReadValue(String, Type) ReadValueAsyncT(String, CancellationToken) ReadValueAsync(String, Type, CancellationToken)
Beckhoff Automation GmbH & Co. KG 2001-2026