Click or drag to resize
EventFormatterSetElement Method (String, Datetime)

Note: This API is now obsolete.

Sets the element with the specified 'name' within the current element to the specified 'value'. The behavior of this function is undefined if 'value' is 'null'. Note that this function is not intended for publication of null values; uses SetElementNull(String) instead. Deprecated, use SetElement(Name, Datetime) instead.

Namespace:  Bloomberglp.Blpapi
Assembly:  Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.26.3.64-experimental+d7d4d9bba07b94fd0a19ff78810b8add95447f66
Syntax
[ObsoleteAttribute("Deprecated, use SetElement(Name, Datetime) instead.")]
public void SetElement(
	string name,
	Datetime value
)

Parameters

name
Type: SystemString
The name of the subfield.
value
Type: Bloomberglp.BlpapiDatetime
The value to be set.
Exceptions
ExceptionCondition
InvalidOperationException The operating stack is empty.
NotFoundException The schema does not identify a 'name' sub-element of the current sequence or choice element, or the element identified by 'name' has already been set.
NotSupportedException The current element in the stack is not a sequence or choice.
InvalidConversionException 'value' cannot be converted to the type specified by the schema for the 'name' sub-element.
See Also