TwclMessageBroadcaster.Post(Integer,TwclMessage) Method

Posts a Message to a message receiver with specified ID.

Namespace: wclMessaging
public
 class function Post(const Id: Integer; const Message: TwclMessage): Integer;

Parameters

Id
Type: Integer

A message receiver ID.

Message
Type: TwclMessage

The TwclMessage object represents the message. A caller is responsible to free the Message object after procedure the call.

Return Value

Type: Integer

If the function succeed the returns value is wclErrors.WCL_E_SUCCESS. Otherwise the function returns one of the WCL error codes.