NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Message.AttachSenderId

Gets or sets a value indicating whether the sender ID is to be attached to the message.

[Visual Basic]
Overridable Public Property AttachSenderId As Boolean
[C#]
public bool AttachSenderId {virtual get; virtual set;}
[C++]
public: __property virtual bool get_AttachSenderId();
public: __property virtual void set_AttachSenderId(bool);
[JScript]
public function get AttachSenderId() : Boolean;
public function set AttachSenderId(Boolean);

Property Value

true if the SenderId is to be attached to the message; otherwise, false. The default is true.

Remarks

AttachSenderId provides access to the SenderIdType property of the Message Queuing application's MSMQMessage object.

The SenderId property of the message is an array of bytes that represents the identifier of the sending user. Typically, this property is set when the message is sent. When the sender ID is not attached to the message, the sending application is indicating that Message Queuing should not validate the message's sender or verify that the sender has access rights to the receiving queue.

Example

See Also

Message Class | Message Members | System.Messaging Namespace | SenderId | ConnectorType | UseAuthentication | Authenticated | SenderCertificate | Authenticate