Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

message Class

The basic message envelope containing the data payload being passed between messaging blocks.

template<
   class _Type
>
class message : public ::Concurrency::details::_Runtime_object;

_Type

The data type of the payload within the message.

Public Typedefs

Name

Description

type

A type alias for _Type.

Public Constructors

Name

Description

message::message Constructor

Overloaded. Constructs a message object.

message::~message Destructor

Destroys the message object.

Public Methods

Name

Description

message::add_ref Method

Adds to the reference count for the message object. Used for message blocks that need reference counting to determine message lifetimes.

message::msg_id Method

Returns the ID of the message object.

message::remove_ref Method

Subtracts from the reference count for the message object. Used for message blocks that need reference counting to determine message lifetimes.

Public Constants

Name

Description

message::payload Data Member

The payload of the message object.

For more information, see Asynchronous Message Blocks.

_AllocBase

_Runtime_object

message

Header: agents.h

Namespace: Concurrency

Community Additions

Show:
© 2015 Microsoft