Bloomberg API for .NET
SetChoice Method (name)
NamespacesBloomberglp.BlpapiElementSetChoice(Name)
Sets the named sub-element as the choice's selection.
Declaration Syntax
C#Visual BasicVisual C++
public abstract Element SetChoice(
	Name name
)
Public MustOverride Function SetChoice ( 
	name As Name
) As Element
public:
virtual Element^ SetChoice(
	Name^ name
) abstract
Parameters
name (Name)
The name of the sub-element to set the choice to.
Return Value
Element
The reference to the specified selection.
Remarks
Note that if this choice element already contains a selection it is discarded and the the choice's selection is set to the named sub-element.
Exceptions
ExceptionCondition
NotSupportedException This element is not a choice or this element is read-only.
NotFoundException The named sub-element cannot be found.

Assembly: Bloomberglp.Blpapi (Module: Bloomberglp.Blpapi.dll) Version: 3.9.6.1