IsLastInTransaction Property (Message)
Gets a value that indicates whether the message was the last message sent in a transaction.
Syntax
'Declaration <MessagingDescriptionAttribute("It is used by receiving applications to verify that a message was the last message sent from a single transaction to a single queue.")> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> Public ReadOnly Property IsLastInTransaction As Boolean
[MessagingDescription("It is used by receiving applications to verify that a message was the last message sent from a single transaction to a single queue.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public bool IsLastInTransaction {get;}
[MessagingDescription("It is used by receiving applications to verify that a message was the last message sent from a single transaction to a single queue.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public: property bool IsLastInTransaction { bool get(); }
Property Value
true if the message was the last message sent in a single transaction; otherwise, false.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 IsLastInTransaction 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