ITypeMarshaler.MarshalSize Method

Gets the byte size of the value when marshalled.

Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.116+a71ced3

Syntax

C#

int MarshalSize(
    Object value,
    Encoding encoding
)

Parameters

value

Type: System.Object
The value.

encoding

Type: System.Text.Encoding
The encoding.

Return Value

Type: Int32
The marshal size of the value.

Reference

ITypeMarshaler Interface

TwinCAT.TypeSystem Namespace