IAccessorRawValue.TryReadRaw Method

Read a Symbol value as bytes.

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

Syntax

C#

int TryReadRaw(
    ISymbol symbolInstance,
    Memory<byte> readBuffer,
    out DateTimeOffset? timeStamp
)

Parameters

symbolInstance

Type: TwinCAT.TypeSystem.ISymbol
The symbol instance.

readBuffer

Type: System.Memory.Byte.
Read buffer 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