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