IDataTypeMarshalerCanMarshal(IDataType, Type) Method

Determines whether this instance can marshal the specified ADS type (and create the managed value type).


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

Syntax

C#

bool CanMarshal(
    IDataType type,
    Type valueType
)

Parameters

type  IDataType

The type.

valueType  Type

Managed value Type (optional, can be null for primitives, strings or arrays of primitives).

Return Value

Boolean
true if this instance can marshal the specified type; otherwise, false.

Reference

IDataTypeMarshaler Interface CanMarshal Overload TwinCAT.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026