AdsConnection.TryReadDataType Method

Call this method to obtain information about the specified data type.

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

Syntax

C#

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

Parameters

typeName

Type: System.String
Name of the symbol.

dataType

Type: TwinCAT.TypeSystem.IDataType.
The symbol.

Return Value

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

Implements

IAdsSymbolicAccess.TryReadDataType(String, IDataType.)

Exceptions

Exception

Condition

ArgumentOutOfRangeException

typeName

ObjectDisposedException

ClientNotConnectedException

Reference

AdsConnection Class

TwinCAT.Ads Namespace

IAdsSymbolicAccess.ReadDataType(String)