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.SenderVersion

Gets the version of Message Queuing used to send the message.

[Visual Basic]
Overridable Public ReadOnly Property SenderVersion As Long
[C#]
public long SenderVersion {virtual get;}
[C++]
public: __property virtual __int64 get_SenderVersion();
[JScript]
public function get SenderVersion() : long;

Property Value

The version of Message Queuing used to send the message.

Exceptions

Exception Type Condition
InvalidOperationException The SenderVersion could not be retrieved.

-or-

The message queue is filtered to not read the SenderVersion property.

Remarks

SenderVersion provides access to the SenderVersion property of the Message Queuing MSMQMessage object.

SenderVersion is important for features such as transaction processing, which is only supported by Message Queuing 2.0 and later; or digital signatures, which are used to authenticate messages sent by MSMQ 1.0.

The sending Queue Manager sets SenderVersion when the message is sent.

The following table shows possible values for the sender version.

Value Message Queuing Version
0x0010 Message Queuing 1.0
0x0020 Message Queuing 2.0

Example

See Also

Message Class | Message Members | System.Messaging Namespace | TransactionId | IsFirstInTransaction | IsLastInTransaction | TransactionStatusQueue | DigitalSignature