ITcAdsRawAnyTryReadAny(UInt32, UInt32, Type, Object) Method

Reads the value as specified type.


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

Syntax

C#

AdsErrorCode TryReadAny(
    uint indexGroup,
    uint indexOffset,
    Type type,
    out Object value
)

Parameters

indexGroup  UInt32

The index group.

indexOffset  UInt32

The index offset.

type  Type

The type to be read.

value  Object

The value marshalled as specified in type.

Return Value

AdsErrorCode
The ADS Error Code.

Remarks

The rules for marshalling the value are documented here in the interace description.

Reference

ITcAdsRawAny Interface TryReadAny Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026