We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

choice::value Method

Gets the message whose index was selected by the choice messaging block.

template <
   typename _Payload_type
_Payload_type const & value();


The type of the message payload.

The payload of the message.

Since a choice messaging block can take inputs with different payload types, you must specify the type of the payload at the point of retrieval. You can determine the type based on the result of the index method.

Header: agents.h

Namespace: Concurrency