Returns the value of this element at the specified index as a Date.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public abstract Datetime GetValueAsDate( int index )
Public MustOverride Function GetValueAsDate ( index As Integer ) As Datetime
public: virtual Datetime^ GetValueAsDate( int index ) abstract
Parameters
- index (Int32)
- The index of the element whose value is requested.
Return Value
Datetime
The value of the element at the specified index as a Date.
The value of the element at the specified index as a Date.
Remarks
If the datatype of the element at the specified index is not Date,
this method attempts to convert it to a Date.
Exceptions
Exception | Condition |
---|---|
IndexOutOfRangeException |
index >= NumValues.
|
InvalidConversionException |
The value of the element at the
specified index cannot be converted to a Date.
|
Assembly: Bloomberglp.Blpapi (Module: Bloomberglp.Blpapi.dll) Version: 3.8.10.1