ElementSetChoice Method (Name) |
Sets the named sub-element as the choice's selection.
Namespace:
Bloomberglp.Blpapi
Assembly:
Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.24.6.1
Syntax public abstract Element SetChoice(
Name name
)
Public MustOverride Function SetChoice (
name As Name
) As Element
public:
virtual Element^ SetChoice(
Name^ name
) abstract
abstract SetChoice :
name : Name -> Element
Parameters
- name
- Type: Bloomberglp.BlpapiName
The name of the sub-element to set the choice to.
Return Value
Type:
ElementThe reference to the specified selection.
Exceptions Exception | Condition |
---|
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