IAccessorRawValue.TryReadArrayElementRaw Method

Reads an array element value as bytes.

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

Syntax

C#

int TryReadArrayElementRaw(
    IArrayInstance arrayInstance,
    int[] indices,
    Memory<byte> readBuffer,
    out DateTimeOffset? timeStamp
)

Parameters

arrayInstance

Type: TwinCAT.TypeSystem.IArrayInstance
The array instance.

indices

Type: .System.Int32.
The indices specify which element to read.

readBuffer

Type: System.Memory.Byte.
ReadBuffer where to read the value.

timeStamp

Type: System.Nullable.DateTimeOffset..
The readtime snapshot

Return Value

Type: Int32
Error code. 0 represents succeed.

Reference

IAccessorRawValue Interface

TwinCAT.ValueAccess Namespace