Click or drag to resize
ElementSetChoice Method (String)

Note: This API is now obsolete.

Sets the named sub-element as the choice's selection. Deprecated, use SetChoice(Name) instead.

Namespace:  Bloomberglp.Blpapi
Assembly:  Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.24.10.1
Syntax
[ObsoleteAttribute("Deprecated, use SetChoice(Name) instead.")]
public abstract Element SetChoice(
	string name
)

Parameters

name
Type: SystemString
The name of the sub-element to set the choice to.

Return Value

Type: Element
The reference to the specified selection.
Exceptions
ExceptionCondition
NotSupportedException This element is not a choice or this element is read-only.
NotFoundException The named sub-element cannot be found.
Remarks
Note that if this choice element already contains a selection it is discarded and the choice's selection is set to the named sub-element.
See Also