BinaryValues property (ILEADDicomDS)

VB.NET example

C# example

Visual Basic example

Visual C++ 6.0 example

 

Syntax

short BinaryValues ( long lIndex )

Overview

Refer to Working with Data Sets.

Remarks

Contains an array of binary values retrieved from or set to the Data Element specified by the CurrentElement property. The size of this array is determined by the BinaryValueCount property.

If you are retrieving binary values associated with the element specified in the CurrentElement property, calling the GetBinaryValue method updates this property with the binary values associated with the specified element.

If you are setting binary values associated with the element specified in the CurrentElement property, you can set the BinaryValueCount property to allocate storage for the BinaryValues property, prior to setting the binary values using SetBinaryValue.

Set the BinaryValueCount property to 0 at any time to free the memory used for the BinaryValues property.

It is strongly recommended that you not use the BinaryValues2 property and the BinaryValues property in the same section of code. However, if they are used in the same section of code, the order in which these properties are used is important. The last property set will control the values used when you call the SetBinaryValue method.

See Also

Elements:

BinaryValueCount property, GetBinaryValue method, SetBinaryValue method

Topics:

Data Sets: Getting and Setting Data Element Values