ITcAdsRawAnyTryReadAny(UInt32, Type, Int32, Object) Method

Read the value of an AnyType (Primitive type)


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

Syntax

C#

AdsErrorCode TryReadAny(
    uint variableHandle,
    Type type,
    int[] args,
    out Object value
)

Parameters

variableHandle  UInt32

The variable handle.

type  Type

The type to be read.

args  Int32

The type arguments (AnyType)

value  Object

The value marshalled as specified in type.

Return Value

AdsErrorCode
The ADS Error Code.

Reference

ITcAdsRawAny Interface TryReadAny Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026