System.Messaging Reference (Document! X Sample)



System.Messaging Namespace > Message Class : SenderVersion Property
SenderVersion Property (Message)
Gets the version of Message Queuing used to send the message.
Syntax
'Declaration
 
<MessagingDescriptionAttribute("Specifies the version of MSMQ used to send the message.")>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<ReadOnlyAttribute(True)>
Public ReadOnly Property SenderVersion As Long
'Usage
 
Dim instance As Message
Dim value As Long
 
value = instance.SenderVersion
[MessagingDescription("Specifies the version of MSMQ used to send the message.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[ReadOnly(true)]
public long SenderVersion {get;}
[MessagingDescription("Specifies the version of MSMQ used to send the message.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[ReadOnly(true)]
public:
property int64 SenderVersion {
   int64 get();
}

Property Value

The version of Message Queuing used to send the message.
Exceptions
ExceptionDescription
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 SenderVersion 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