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

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