ElementSetValue Method (Name, Int32) |
Sets the value of this element to the specified value.
Namespace:
Bloomberglp.Blpapi
Assembly:
Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.24.10.1
Syntax public abstract void SetValue(
Name constant,
int index
)
Public MustOverride Sub SetValue (
constant As Name,
index As Integer
)
public:
virtual void SetValue(
Name^ constant,
int index
) abstract
abstract SetValue :
constant : Name *
index : int -> unit
Parameters
- constant
- Type: Bloomberglp.BlpapiName
The value for this element.
- index
- Type: SystemInt32
For a non-array, index can only be 0.
For an array, index is in the range of the array.
Exceptions Exception | Condition |
---|
InvalidConversionException |
This element's type is not an enumeration type, or constant
does not refer to a constant in the enumeration type of this
element.
|
IndexOutOfRangeException |
index >= NumValues |
See Also