[#BloombergLP-baljsn-EncoderTestChoiceWithAllCategories-selectionId] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategories.adoc[EncoderTestChoiceWithAllCategories]::selectionId :relfileprefix: ../../../ :mrdocs: Return the id of the current selection if the selection is defined, and ‐1 otherwise. == Synopsis Declared in `<baljsn_encoder_testtypes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int selectionId() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#