Acrux.Threading
PostMessage Method (sender, messageId, message, notificationArgument, overwritePrevUndeliveredMessage)
NamespacesAcrux.Threading.NotificationsNotificationManagerPostMessage(Object, Byte, Object, Object, Boolean)
Posts a message to all subscribers of the sender type and allows the senders to overwrite undelivered messages.
Declaration Syntax
C#Visual BasicVisual C++
public static void PostMessage(
	Object sender,
	byte messageId,
	Object message,
	Object notificationArgument,
	bool overwritePrevUndeliveredMessage
)
Public Shared Sub PostMessage ( _
	sender As Object, _
	messageId As Byte, _
	message As Object, _
	notificationArgument As Object, _
	overwritePrevUndeliveredMessage As Boolean _
)
public:
static void PostMessage(
	Object^ sender, 
	unsigned char messageId, 
	Object^ message, 
	Object^ notificationArgument, 
	bool overwritePrevUndeliveredMessage
)
Parameters
sender (Object)
The sender of the message. The type of the sender is used to find the subscribers
messageId (Byte)
A sender defined message number
message (Object)
The message to be sent to the subscribers in a form of an object instance.
notificationArgument (Object)
Optional argument that will also be sent to all subscribers.
overwritePrevUndeliveredMessage (Boolean)
"true" to overwrite an existing not yet delivered message, which is already in the queue. If the message is not found a MessageNotFoundException will be thrown.
Exceptions
ExceptionCondition
MessageNotFoundExceptionThrown if overwritePrevUndeliveredMessage is true and no matching message is found to overwrite.
ArgumentNullExceptionThrown if the sender is null.

Assembly: Acrux.Threading (Module: Acrux.Threading) Version: 1.0.0.0 (1.0.0.35)