SenderId Property (Message)
Gets the identifier of the sending user.
Syntax
'Declaration <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <MessagingDescriptionAttribute("This property is set by MSMQ, and is used primarily by the receiving Queue Manager when authenticating a message.")> Public ReadOnly Property SenderId As Byte()
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [MessagingDescription("This property is set by MSMQ, and is used primarily by the receiving Queue Manager when authenticating a message.")] public byte[] SenderId {get;}
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [MessagingDescription("This property is set by MSMQ, and is used primarily by the receiving Queue Manager when authenticating a message.")] public: property array<byte>^ SenderId { array<byte>^ get(); }
Property Value
An array of byte values that identifies the sender. The receiving Queue Manager uses the identifier when it authenticates the message to verify the sender of the message and the sender's access rights to the queue.Exceptions
Exception | Description |
---|---|
System.InvalidOperationException | The message has not been sent. This property can only be read on messages retrieved from a queue.-or- The message queue is filtered to ignore the SenderId property. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also