Returns the value of the named sub-element as a boolean.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public abstract bool GetElementAsBool( string name )
Public MustOverride Function GetElementAsBool ( name As String ) As Boolean
public: virtual bool GetElementAsBool( String^ name ) abstract
Parameters
- name (String)
- The name of the required sub-element.
Return Value
Boolean
The value of the named sub-element as a boolean.
The value of the named sub-element as a boolean.
Remarks
Same as calling GetElement(name).
GetValueAsBool().
Exceptions
Exception | Condition |
---|---|
NotFoundException |
The named sub-element is not available.
|
InvalidConversionException |
The value of the named sub-element cannot be converted to a boolean.
|
NotSupportedException |
Called on non-complex type.
|
Assembly: Bloomberglp.Blpapi (Module: Bloomberglp.Blpapi.dll) Version: 3.9.6.1