Returns the value of the element
at the specified index as a boolean.
Declaration Syntax
C# | Visual Basic | Visual 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.
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
Exception | Condition |
---|---|
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.7.4.1