TransactionId Property (Message)
Gets the identifier for the transaction of which the message was a part.
Syntax
'Declaration <MessagingDescriptionAttribute("It is used by receiving applications to verify that a message was sent from a specific transaction.")> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> Public ReadOnly Property TransactionId As String
[MessagingDescription("It is used by receiving applications to verify that a message was sent from a specific transaction.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public string TransactionId {get;}
[MessagingDescription("It is used by receiving applications to verify that a message was sent from a specific transaction.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public: property String^ TransactionId { String^ get(); }
Property Value
The identifier for the transaction associated with the message.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 TransactionId 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