SetBinaryData

Navigation:  NxLib API > C# Interface / CLI > NxLibItem >

SetBinaryData

Previous pageReturn to chapter overviewNext page

Sets data of a Binary item.

The data format must be identical to the current format of the binary node. The current format can be queried using GetBinaryDataInfo. The time stamp of the node will be set to the current UTC time.

Signatures

Variants throwing exceptions on API errors:

generic <typename T>
void SetBinaryData(Ref array<T> buffer)

void SetBinaryDataByte(Ref array<Byte> buffer)

void SetBinaryDataShort(Ref array<Short> buffer)

void SetBinaryDataFloat(Ref array<Float> buffer)

Variants returning API errors as int parameter:

generic <typename T>
void SetBinaryData(Out int returnCode, Ref array<T> buffer)

void SetBinaryDataByte(Out int returnCode, Ref array<Byte> buffer)

void SetBinaryDataShort(Out int returnCode, Ref array<Short> buffer)

void SetBinaryDataFloat(Out int returnCode, Ref array<Float> buffer)

Parameters

returnCode

The error code returned when accessing the item.

buffer

An array from which the binary data should be copied.

Return Value

none