SenderIDType
MSMQMessage

The SenderIDType property specifies the type of sender identifier found by MSMQ. Currently, the only type of sender identifier available to MSMQ is an SID.

Quick Info

Type: Long
Run time: read-write

Syntax

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

Settings

MSMQ sets SenderIDType to one of the following:

MQMSG_SENDERID_TYPE_NONE
SenderID is not attached to the message.
MQMSG_SENDERID_TYPE_SID
The default. The SenderID property contains an SID for the user sending the message.

Remarks

If the sending application does not want MSMQ to send a sender identifier with a message, it can specify MQMSG_SENDERID_TYPE_NONE when sending the message. This suppresses the message's SenderID property.

The receiving application can use SenderIDType to determine what type of sender identifier was attached to the message.

An SID of a local user (a user not logged into a Windows NT domain) is only valid locally. Even if a local user specifies an SID, it is not sent with the message.


© 1997 by Microsoft Corporation. All rights reserved.