GetBinaryValue method (ILEADDicomDS)

VB.NET example

C# example

Visual Basic example

Visual C++ 6.0 example

 

Syntax

short GetBinaryValue ( long lLength );

Overview

Refer to Working with Data Sets.

Remarks

Updates the BinaryValues and BinaryValues2 properties with the binary values associated with the item specified by the CurrentElement property. This method also updates the BinaryValueCount property with lLength, where lLength is the number of bytes of binary data to get.

The retrieved binary data does not undergo any type coercion. It is retrieved in the same form in which it is stored.

If you call this method with lLength greater than the number of bytes of data associated with the specified item, this method will return an error. For example, if there are only three bytes of binary data associated with the specified item and you call this method with lLength set to four, an error will be returned.

This method can be called for every Value Representation, and it will return the exact value in the Value Field (unconverted).

See Also

Elements:

GetAgeValue method, GetCharValue method, GetShortValue method, GetLongValue method, GetFloatValue method, GetDoubleValue method, GetStringValue method, GetDateValue method, GetTimeValue method, GetDateTimeValue method, BinaryValues property, BinaryValues2 property, BinaryValueCount property

Topics:

Data Sets: Getting and Setting Data Element Values