Message.SenderId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the identifier of the sending user.
public:
property cli::array <System::Byte> ^ SenderId { cli::array <System::Byte> ^ get(); };
[System.Messaging.MessagingDescription("MsgSenderId")]
public byte[] SenderId { get; }
[<System.Messaging.MessagingDescription("MsgSenderId")>]
member this.SenderId : byte[]
Public ReadOnly Property SenderId As Byte()
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.
- Attributes
Exceptions
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.
Remarks
If the AttachSenderId property is false
, the sender identifier specified in the SenderId property is not attached to the message when it is sent. This indicates to Message Queuing that the sender should not be validated when it sends the message to the destination queue. If the AttachSenderId property is true
, the SenderId property value is trustworthy only if the message was authenticated. Use the Authenticated property in conjunction with the SenderId property to verify the sender's access rights.
A connector application is an application that uses a connector server to provide communication between Message Queuing and other queuing systems. Message Queuing requires connector applications to provide sender identification. You must set the ConnectorType property when sending a message through a connector application.
Applies to
See also
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre