SenderId
MSMQMessage

The SenderId property is an array of bytes that represents the identifier of the sending application. MSMQ sets this property when the message is sent.

Type: Variant
Run time: read-only

Syntax

object.SenderId
 
Syntax Element Description
object Message (MSMQMessage) object that defines the message.

Return Values

An array of bytes generated by MSMQ.

Remarks

When a message is sent, MSMQ attaches SenderId to the message when an MSMQ sender identifier is found for the user. The SenderId property is primarily used by MSMQ security to identify who sent the message.

A second property, SenderIdType, is also attached to the message when the sender identifier is found. This second property indicates what type of identifier was found (currently, the only type of sender identifier available to MSMQ is an SID).

The receiving applications can look at SenderId to verify who sent a message.

QuickInfo

  Windows NT: Requires version 4.0 SP3 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in mqoai.h.
  Import Library: Use mqoa.lib.
  Unicode: Defined only as Unicode.