Sets the named sub-element as the choice's selection.
| C# | Visual Basic | Visual C++ |
public abstract Element SetChoice( string name )
Public MustOverride Function SetChoice ( name As String ) As Element
public: virtual Element^ SetChoice( String^ name ) abstract
- name (String)
- The name of the sub-element to set the choice to.
Element
The reference to the specified selection.
The reference to the specified selection.
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.
| Exception | Condition |
|---|---|
| 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