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