Bloomberg API for .NET
SetChoice Method (name)
NamespacesBloomberglp.BlpapiElementSetChoice(String)
Sets the named sub-element as the choice's selection.
Declaration Syntax
C#Visual BasicVisual C++
public abstract Element SetChoice(
	string name
)
Public MustOverride Function SetChoice ( 
	name As String
) As Element
public:
virtual Element^ SetChoice(
	String^ name
) abstract
Parameters
name (String)
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.7.4.1