Bloomberg API for .NET
GetValueAsBytes Method (index)
NamespacesBloomberglp.BlpapiElementGetValueAsBytes(Int32)
Returns the value of this element at the specified index as a byte array.
Declaration Syntax
C#Visual BasicVisual C++
public abstract byte[] GetValueAsBytes(
	int index
)
Public MustOverride Function GetValueAsBytes ( 
	index As Integer
) As Byte()
public:
virtual array<unsigned char>^ GetValueAsBytes(
	int index
) abstract
Parameters
index (Int32)
The index of the element whose value is requested.
Return Value
array<Byte>[]()[][]
The value of the element at the specified index as a byte array.
Remarks
If the datatype of the element at the specified index is not byte array, this method attempts to convert it to a byte array.
Exceptions
ExceptionCondition
IndexOutOfRangeException index >= NumValues.
InvalidConversionException The value of the element at the specified index cannot be converted to a byte array.

Assembly: Bloomberglp.Blpapi (Module: Bloomberglp.Blpapi.dll) Version: 3.8.10.1