SenderId
MSMQMessage

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

Quick Info

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.


© 1997 by Microsoft Corporation. All rights reserved.