AdsConnectionTryReadDataType Method

Tries to Read/Determine the DataType of the specified type.


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

Syntax

C#

public AdsErrorCode TryReadDataType(
    string typeName,
    out IDataType?? dataType
)

Parameters

typeName  String

Name of the symbol.

dataType  IDataType

The symbol.

Return Value

AdsErrorCode
A IDataType containing the requested symbol information or null if symbol could not be found.

Implements

IAdsSymbolicAccessTryReadDataType(String, IDataType)

Exceptions

Exception

Condition

ArgumentOutOfRangeException

typeName

ObjectDisposedException

ClientNotConnectedException

Reference

AdsConnection Class TwinCAT.Ads Namespace ReadDataType(String)

Beckhoff Automation GmbH & Co. KG 2001-2026