IAnyTypeMarshaler.MarshalValueSize Method (Object, .Int32., Encoding)

Gets the byte size of the value when marshalled.

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

Syntax

C#

int MarshalValueSize(
    Object anyValue,
    int[] args,
    Encoding encoding
)

Parameters

anyValue

Type: System.Object
Any value.

args

Type: .System.Int32.
The arguments.

encoding

Type: System.Text.Encoding
The encoding.

Return Value

Type: Int32
The marshal size of the value.

Reference

IAnyTypeMarshaler Interface

MarshalValueSize Overload

TwinCAT.TypeSystem Namespace