Click or drag to resize
ElementGetValueAsBool Method (Int32)
Returns the value of the element at the specified index as a boolean.

Namespace:  Bloomberglp.Blpapi
Assembly:  Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.24.10.1
Syntax
public abstract bool GetValueAsBool(
	int index
)

Parameters

index
Type: SystemInt32
The index of the element whose value is requested.

Return Value

Type: Boolean
The value of the element at the specified index as a boolean.
Exceptions
ExceptionCondition
IndexOutOfRangeException index >= NumValues.
InvalidConversionException The value of the element at the specified index cannot be converted to a bool.
Remarks
If the datatype of the element at the specified index is not boolean, this method attempts to convert it to a boolean.
See Also